diff options
author | Joey Hess <joeyh@joeyh.name> | 2017-02-03 14:31:17 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2017-02-03 14:31:17 -0400 |
commit | c438a610208b1914932980a26c0ab90fb544cd34 (patch) | |
tree | 1c204beae009ae2b5351f0eb4e865abef09545ba /doc/git-annex-config.mdwn | |
parent | 4cded2bc85d530dd335738cb870daf3a2d4e4a2f (diff) |
New annex.synccontent config setting
.. which can be set to true to make git annex sync default to --content.
This may become the default at some point in the future.
As well as being configuable by git config, it can be configured by
git-annex config to control the default behavior in all clones of a
repository.
Had to add a separate --no-content switch to we can tell if it's been
explicitly set, and should override annex.synccontent. If --content was the
default, this complication would not be necessary.
This commit was sponsored by Jake Vosloo on Patreon.
Diffstat (limited to 'doc/git-annex-config.mdwn')
-rw-r--r-- | doc/git-annex-config.mdwn | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/git-annex-config.mdwn b/doc/git-annex-config.mdwn index a6b7eb578..dd29055b8 100644 --- a/doc/git-annex-config.mdwn +++ b/doc/git-annex-config.mdwn @@ -32,6 +32,10 @@ These settings can be overridden on a per-repository basis using Set to false to prevent the git-annex assistant and git-annex sync from automatically committing changes to files in the repository. +* `annex.synccontent` + + Set to true to make git-annex sync default to syncing content. + # EXAMPLE Suppose you want to prevent git annex sync from committing changes @@ -40,7 +44,12 @@ repository. Then run: git annex config --set annex.autocommit false -If you change your mind, you can get back to the default behavior: +If you want to override that in a partiticular clone, just use git config +in the clone: + + git config annex.autocommit true + +And to get back to the default behavior: git annex config --unset annex.autocommit |