Support the standard git -c name=value

This allows eg, `git-annex -c annex.rsync-options=-6 get file`

The overridden git configs are not passed on to git plumbing commands
that are run. Perhaps someone will find a need to do that, but I don't yet
and it would require storing more state to know what config settings
have been overridden and need to be passed on.
This commit is contained in:
Joey Hess 2011-07-14 16:44:23 -04:00
parent dddbc09ff0
commit 0c46cbab09
3 changed files with 15 additions and 1 deletions

View file

@ -387,6 +387,10 @@ Many git-annex commands will stage changes for later `git commit` by you.
Specifies a key to operate on.
* -c name=value
Used to override git configuration settings. May be specified multiple times.
# CONFIGURATION
Like other git commands, git-annex is configured via `.git/config`.