Coloring should be automatic, and controlled globally with color.diff.
Link: <https://lore.kernel.org/git/aYjVlRqvafWeePvi@devuan/T/#u>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
useful.
$ git config --global alias.ref \
- "show -s --abbrev=12 --date=short --format=tformat:'%C(auto)%h%C(reset) %C(dim white)(%cd%x3B \"%C(reset)%C(auto)%s%C(reset)%C(dim white)\")%C(reset)'"
+ "show -s --abbrev=12 --date=short --format=tformat:'%C(auto)%h (%cd%x3B \"%s\")%C(reset)'"
$ git config --global alias.ref2 \
- "show -s --abbrev=12 --date=short --format=tformat:'%C(auto)%h%C(reset) %C(dim white)(%ad, %cd%x3B \"%C(reset)%C(auto)%s%C(reset)%C(dim white)\")%C(reset)'"
+ "show -s --abbrev=12 --date=short --format=tformat:'%C(auto)%h (%ad, %cd%x3B \"%s\")%C(reset)'"
See also
git-config(1)