]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
CONTRIBUTING.d/git: core.abbrev: Set to 12
authorAlejandro Colomar <alx@kernel.org>
Sun, 8 Feb 2026 19:06:03 +0000 (20:06 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 8 Feb 2026 19:32:31 +0000 (20:32 +0100)
By setting this globally to 12, we avoid having to specify it in every
config.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
CONTRIBUTING.d/git

index d6f00e91c3cb313b48f8e6b42eecf9fe59634972..c12dc2f24554ea1647d5f4be276bfde98df26548 100644 (file)
@@ -48,9 +48,14 @@ Description
        useful.
 
                $ git config --global alias.ref \
-                       "show -s --abbrev=12 --date=short --format=tformat:'%C(auto)%h (%cd%x3B \"%s\")%C(reset)'"
+                       "show -s --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 (%ad, %cd%x3B \"%s\")%C(reset)'"
+                       "show -s --date=short --format=tformat:'%C(auto)%h (%ad, %cd%x3B \"%s\")%C(reset)'"
+
+    core.abbrev
+       Use 12 characters in abbreviated hashes.
+
+               $ git config --global core.abbrev 12
 
 See also
        git-config(1)