author | Brian Gernhardt <benji@silverinsanity.com> | |
Fri, 15 Dec 2006 12:39:04 +0000 (07:39 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 16 Dec 2006 06:31:01 +0000 (22:31 -0800) | ||
commit | 89c4afe0d011b71d0bbcd9ad43f367f6a0dc3d83 | |
tree | 59515c79cb19dd8d8f6816188748eed1bde571ef | tree | snapshot |
parent | 9013192449ed1148da4805e33a2644fca92dd1c7 | commit | diff |
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>
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 | diff | blob | history | |
builtin-repo-config.c | diff | blob | history | |
t/t1300-repo-config.sh | diff | blob | history |