]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4202-log.sh
log --pretty/--oneline: ignore log.decorate
authorJunio C Hamano <gitster@pobox.com>
Tue, 6 Apr 2010 21:48:55 +0000 (14:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Apr 2010 21:49:33 +0000 (14:49 -0700)
commit635530a2fcd4bb3714452403f341f1317ae9c9f6
tree5beeafeed8200f320d8463a7ba384a96e6ee821b
parent8a3d203bd02bec48a02557961899d81da172fa23
log --pretty/--oneline: ignore log.decorate

Many scripts, most notably gitk, rely on output from the log family of
command not to be molested by random user configuration.  This is
especially true when --pretty=raw is given.

Just like we disable notes output unless the command line explicitly
asks for --show-notes, disable the decoration code unless --decorate is
given explicitly from the command line and --pretty or --oneline is
given.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-log.c
t/t4202-log.sh