git log: support "auto" decorations
commit1571586648da4e2d759bce1146d5585c91aca8d6
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 29 May 2014 22:19:40 +0000 (29 15:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 30 May 2014 20:47:24 +0000 (30 13:47 -0700)
tree6ecee6879f16a55e7a38adb9eea08461608e0594
parente156455ea49124c140a67623f22a393db62d5d98
git log: support "auto" decorations

This works kind of like "--color=auto" - add decorations for interactive
use, but do not change defaults when scripting or when piping the output
to anything but a terminal.

You can use either

    [log]
         decorate=auto

in the git config files, or the "--decorate=auto" command line option to
choose this behavior.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c