pretty: add aliases for pretty formatspatches/pretty/format-aliases/v1
commit62e3f3d891775b12971d9033eef2aa39841e1c67
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 14:57:47 +0000 (25 15:57 +0100)
treecf239af5e2d7aede9a1344e48aaf7d9687377f04
parent9b8b1d638c77a542294b3d963118dd9b01020efa
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.
Documentation/config.txt
pretty.c
t/t4205-log-pretty-formats.sh