I see the following options here:
- commit only single file
(setq git-auto-commit-mode-context 'file)
- commit all (staged and/or unstaged) commits in subtree (subdirectory)
(setq git-auto-commit-mode-context 'subtree)
- commit all (staged and/or unstaged) commits in repo
(setq git-auto-commit-mode-context 'repository)
- commit all (staged and/or unstaged) changes to file and its "companion files", e.g.
gtd.org would add (setq git-auto-commit-mode-context '("gtd.archive.org" "inbox.org")
And then also (setq git-auto-commit-mode-staged-only t)