pretty: add aliases for pretty formatspatches/pretty/format-aliases/v2
commit4d936b8383863a0f0b32d5945aaf3fb1db6083ef
authorWill Palmer <wmpalmer@gmail.com>
Sat, 24 Apr 2010 16:41:26 +0000 (24 17:41 +0100)
committerWill Palmer <wmpalmer@gmail.com>
Sun, 25 Apr 2010 21:42:25 +0000 (25 22:42 +0100)
tree98f62c4aa3bfa99c7b4d659706c804306e1a7fd6
parent2cbc6810a211549e0ca88aac517cdfd5b4244624
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 format.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
pretty.c
t/t4205-log-pretty-formats.sh