author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 16 Dec 2006 14:14:14 +0000 (15:14 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 16 Dec 2006 21:28:20 +0000 (13:28 -0800) | ||
commit | 0667fcfb6271e9e1ea032a0e3a7d74c9d6a5fa8a | |
tree | 56b2353219b7d37819c93714618caaa344635904 | tree | snapshot |
parent | b1bfcae438adb485bb66e2f59396373809e346e6 | commit | diff |
add a function to rename sections in the config
Given a config like this:
# A config
[very.interesting.section]
not
The command
$ git repo-config --rename-section very.interesting.section bla.1
will lead to this config:
# A config
[bla "1"]
not
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Given a config like this:
# A config
[very.interesting.section]
not
The command
$ git repo-config --rename-section very.interesting.section bla.1
will lead to this config:
# A config
[bla "1"]
not
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-repo-config.c | diff | blob | history | |
cache.h | diff | blob | history | |
config.c | diff | blob | history | |
t/t1300-repo-config.sh | diff | blob | history |