diff options
author | 2017-01-30 16:41:29 -0400 | |
---|---|---|
committer | 2017-01-30 16:46:38 -0400 | |
commit | 9b17947b394cc2720b15aaf44e6fb7703ba8513f (patch) | |
tree | d97e570df7bf859031713d3963baf4be7f65bfbf /doc/todo | |
parent | dc2095666d7b8e39ec3e1f2f26dca7eceff34877 (diff) |
config: New command for storing configuration in the git-annex branch.
Any config names can be set using this; git-annex commands will only look
at specific ones that make sense and are worth the overhead of querying the
branch.
This might also be useful for storing whatever other config-type stuff the
user might want to shove into the git-annex branch.
This commit was sponsored by Jochen Bartl on Patreon.
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/wishlist__58___per-repository_autocommit__61__false/comment_1_851483817d97de212932203c2e830293._comment | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/todo/wishlist__58___per-repository_autocommit__61__false/comment_1_851483817d97de212932203c2e830293._comment b/doc/todo/wishlist__58___per-repository_autocommit__61__false/comment_1_851483817d97de212932203c2e830293._comment new file mode 100644 index 000000000..7e5d85038 --- /dev/null +++ b/doc/todo/wishlist__58___per-repository_autocommit__61__false/comment_1_851483817d97de212932203c2e830293._comment @@ -0,0 +1,38 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2017-01-30T18:13:42Z" + content=""" +This could be put in the git-annex branch similarly to the `git annex +numcopies` configuration so all clones see it. + +As well as --no-commit, --content is the other option that I think +might make sense to have a clone-wide setting for. sync's --no-pull and +--no-push seem much less likely to need such a setting. + +I've been leaning toward eventually turning sync --content on by default, +and such a clone-wide configuration would be useful to let users get back +the current behavior. + +Hmm, this could be generalized all the way to having a file in the +git-annex branch that stores default settings for `annex.*` configs. +But then git-annex would have to pull that file out of the git-annex branch +every time it's run, which would slow down commands that get run a lot in +succession. So that's a generalization too far. + +Still, looking through the configs, I can see some other things +that it would similarly make sense to sometimes want to set clone-wide, +including: annex.genmetadata, annex.used-refspec, annex.diskreserve, +annex.addsmallfiles. + +So, we have some configs that are each only used by a few commands, +that make sense to be allowed to be set clone-wide. We can make the file +in the git-annex branch be only read by commands that look at those +configs, and can consider when implementing each whether it would slow +down any command too much to have it need to read the git-annex branch +file. + +I've added a `git annex config` command that can set such clone-wide +configurations. I have not yet made git annex sync look at it for +annex.autocommit. +"""]] |