]> git.ipfire.org Git - thirdparty/git.git/commit - t/t1300-config.sh
Add --add option to git-repo-config
authorBrian Gernhardt <benji@silverinsanity.com>
Fri, 15 Dec 2006 12:39:04 +0000 (07:39 -0500)
committerJunio C Hamano <junkio@cox.net>
Sat, 16 Dec 2006 06:31:01 +0000 (22:31 -0800)
commit89c4afe0d011b71d0bbcd9ad43f367f6a0dc3d83
tree59515c79cb19dd8d8f6816188748eed1bde571ef
parent9013192449ed1148da4805e33a2644fca92dd1c7
Add --add option to git-repo-config

For multivars, the "git-repo-config name value ^$" is useful but
nonintuitive and troublesome to do repeatedly (since the value is not
at the end of the command line).  This commit simply adds an --add
option that adds a new value to a multivar.  Particularly useful for
tracking a new branch on a remote:

git-repo-config --add remote.origin.fetch +next:origin/next

Includes documentation and test.

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-repo-config.txt
builtin-repo-config.c
t/t1300-repo-config.sh