let say you have 2 tracked directories:
/dir1/... many files and sub-directories being correctly added and tracked
/dir2/... many files and sub-directories being correctly added and tracked
For some reason you need to commit tracked changes in dir2 separately from dir1. I could not find simple solution for that task. Perhaps it is something like git commit find <your file type filter> or ls, but to me it seems over-complicated, isn't there more simple way to do that? I mean to commit all changes in dir2 including all it's tracked/untracked content and then commit dir1 changes in a similar manner? You may have hundreds files/directories so you can't provide whole list of them in single query. From what I see in git commit dir2/ --dry-run it still wants to include dir1 in this commit. Any ideas?