]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
CONTRIBUTING.d/git: alias.ref, alias.ref2: Simplify coloring
authorAlejandro Colomar <alx@kernel.org>
Sun, 8 Feb 2026 18:38:56 +0000 (19:38 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 8 Feb 2026 19:21:12 +0000 (20:21 +0100)
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>
CONTRIBUTING.d/git

index 3b301c7f4d75721e47e9643206a5d5bc365741fa..d6f00e91c3cb313b48f8e6b42eecf9fe59634972 100644 (file)
@@ -48,9 +48,9 @@ Description
        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)