pretty: add aliases for pretty formatspatches/pretty/format-aliases/v3
commit2ef4b3fa30ff8d26d2337eeda662306849767279
authorWill Palmer <wmpalmer@gmail.com>
Sat, 24 Apr 2010 16:41:26 +0000 (24 17:41 +0100)
committerWill Palmer <wmpalmer@gmail.com>
Fri, 30 Apr 2010 19:15:48 +0000 (30 20:15 +0100)
tree24bfb29cee0962d67ed89ceb6282dbd819313025
parent1cff218ce338799520f067a6e7439c5bcfeb91a1
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