author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Thu, 17 Nov 2005 21:44:55 +0000 (22:44 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 20 Nov 2005 04:47:29 +0000 (20:47 -0800) | ||
commit | 1b1e59c5084ac8b0af0aa443bb1713179d400211 | |
tree | 478bb4e57cd4eb5a898476373e44681a04b66bc8 | tree | snapshot |
parent | 10bea152a34b2bf1194ede5e0c9e5595ab2100f3 | commit | diff |
Add git-config-set, a simple helper for scripts to set config variables
This is meant for the end user, who cannot be expected to edit
.git/config by hand.
Example:
git-config-set core.filemode true
will set filemode in the section [core] to true,
git-config-set --unset core.filemode
will remove the entry (failing if it is not there), and
git-config-set --unset diff.twohead ^recar
will remove the unique entry whose value matches the regex "^recar"
(failing if there is no unique such entry).
It is just a light wrapper around git_config_set() and
git_config_set_multivar().
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This is meant for the end user, who cannot be expected to edit
.git/config by hand.
Example:
git-config-set core.filemode true
will set filemode in the section [core] to true,
git-config-set --unset core.filemode
will remove the entry (failing if it is not there), and
git-config-set --unset diff.twohead ^recar
will remove the unique entry whose value matches the regex "^recar"
(failing if there is no unique such entry).
It is just a light wrapper around git_config_set() and
git_config_set_multivar().
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
.gitignore | diff | blob | history | |
Makefile | diff | blob | history | |
config-set.c | [new file with mode: 0644] | blob |