Follow-up to https://git-annex.branchable.com/forum/Use_assistant_to_sync_just_git_repos63/#comment-88286ff5bb273eda1d731ac91197cb37
Currently, the annex.autocommit controls 3 things:
- assistant automatically committing
- assistant automatically syncing committs to other repos
- sync committing when invoked
As of ff6b36c706efe1a63f121e57e45776f5f6628163 it no longer affects 2. but that also means there's no way to control 2.
The autocommit option should only configure whether the assistant automatically adds and commits new files and changes. Perhaps it should be namespaced to make its function more obvious: annex.assistant.autocommit
Additionally, there should be two more options to control the other two. annex.assistant.autosync
and annex.sync.commit
perhaps.
Making the new options namespaced would also allow the old option to retain its current function; enabling all three.
I've got multiple use-cases for git-annex where I cannot use the assistant because these finer-grained options don't exist.
Closing because remote.name.annex-sync seems to be sufficient. done --Joey
remote.name.annex-sync controls #2
I don't think it makes sense for different git-annex commands that do substantially the same thing to have different options to control that thing. So I do not see why annex.autocommit should not be used by both the assistant and git-annex sync. If you need to run one command with the option set and another with the option unset, there are ways to do that, eg a shell script or git alias.