pretty: add aliases for pretty formatspatches/pretty/format-aliases/v4
commit122a1b81d7b54fdb7d134a2ee43fe4131b219e46
authorWill Palmer <wmpalmer@gmail.com>
Sat, 24 Apr 2010 16:41:26 +0000 (24 17:41 +0100)
committerWill Palmer <wmpalmer@gmail.com>
Sun, 2 May 2010 10:06:52 +0000 (2 11:06 +0100)
treea035d9e85406565d51728b9d2b5d2c4bd4cd037d
parent17549a38959daab2b4181800181478c2d8c61165
pretty: add aliases for pretty formats

previously the only ways to alias a --pretty format within git were
either to set the format as your default format (via the format.pretty
configuration variable), or by using a regular git alias. This left the
definition of more complicated formats to the realm of "builtin or
nothing", with user-defined formats usually being reserved for quick
one-offs.

Here we allow user-defined formats to enjoy more or less the same
benefits of builtins. By defining pretty.myalias, "myalias" can be
used in place of whatever would normally come after --pretty=. This
can be a format:, tformat:, raw (ie, defaulting to tformat), or the name
of another builtin or user-defined pretty format.

Signed-off-by: Will Palmer <wmpalmer@gmail.com>
Documentation/config.txt
Documentation/pretty-formats.txt
pretty.c
t/t4205-log-pretty-formats.sh [new file with mode: 0755]