author | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 18:20:49 +0000 (10:20 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 18:20:49 +0000 (10:20 -0800) | ||
commit | 8a3d203bd02bec48a02557961899d81da172fa23 | |
tree | 8d85296b6d6dda98eb01cb17198ecb06d25a8eed | tree | snapshot |
parent | eb734454098fb68af1fb0e157dd5e67bb15a602d | commit | diff |
log.decorate: usability fixes
The configuration is meant to suppliment --decorate command line option
that can be used as a boolean to turn the feature on, so it is natural
to expect
[log]
decorate
decorate = yes
to work. The original commit would segfault with the first one, and
would not understand the second one.
Once a user has this configuration in ~/.gitconfig, there needs to be a
way to override it from the command line. Add --no-decorate option to
log family and also allow --decorate=no to mean the same thing. Since
we allow setting log.decorate to 'true', the command line also should
accept --decorate=yes and behave accordingly.
New tests in t4202 are designed to exercise the interaction between the
configuration variable and the command line option that overrides it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The configuration is meant to suppliment --decorate command line option
that can be used as a boolean to turn the feature on, so it is natural
to expect
[log]
decorate
decorate = yes
to work. The original commit would segfault with the first one, and
would not understand the second one.
Once a user has this configuration in ~/.gitconfig, there needs to be a
way to override it from the command line. Add --no-decorate option to
log family and also allow --decorate=no to mean the same thing. Since
we allow setting log.decorate to 'true', the command line also should
accept --decorate=yes and behave accordingly.
New tests in t4202 are designed to exercise the interaction between the
configuration variable and the command line option that overrides it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-log.txt | diff | blob | history | |
builtin-log.c | diff | blob | history | |
t/t4202-log.sh | diff | blob | history |