From: Alejandro Colomar Date: Sun, 8 Feb 2026 19:06:03 +0000 (+0100) Subject: CONTRIBUTING.d/git: core.abbrev: Set to 12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9fa66a08f6376f231c9a9d2af820f125eb5e154;p=thirdparty%2Fman-pages.git CONTRIBUTING.d/git: core.abbrev: Set to 12 By setting this globally to 12, we avoid having to specify it in every config. Signed-off-by: Alejandro Colomar --- diff --git a/CONTRIBUTING.d/git b/CONTRIBUTING.d/git index d6f00e91c..c12dc2f24 100644 --- a/CONTRIBUTING.d/git +++ b/CONTRIBUTING.d/git @@ -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)