diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-08-04 15:40:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-08-05 10:09:17 -0700 |
commit | a789ca70e7a5b02973b116d21674acd795238f99 (patch) | |
tree | fd5e0827a1737e07858c5418e9d5c4fa6b570dfc /dir.c | |
parent | Documentation: fix missing text for rev-parse --verify (diff) | |
download | tgif-a789ca70e7a5b02973b116d21674acd795238f99.tar.xz |
config: teach "git -c" to recognize an empty string
In a config file, you can do:
[foo]
bar
to turn the "foo.bar" boolean flag on, and you can do:
[foo]
bar=
to set "foo.bar" to the empty string. However, git's "-c"
parameter treats both:
git -c foo.bar
and
git -c foo.bar=
as the boolean flag, and there is no way to set a variable
to the empty string. This patch enables the latter form to
do that.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
0 files changed, 0 insertions, 0 deletions