core.abbrev=no disables abbreviations
authorEric Wong <e@80x24.org>
Tue, 1 Sep 2020 07:43:55 +0000 (07:43 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Dec 2020 21:40:09 +0000 (13:40 -0800)
commita9ecaa06a7235e62a9cf4703a19463fcee4449c7
tree05e9ac19610eb10df0b4b558a16b417fd666f216
parente19713638985533ce461db072b49112da5bd2042
core.abbrev=no disables abbreviations

This allows users to write hash-agnostic scripts and configs by
disabling abbreviations.  Using "-c core.abbrev=40" will be
insufficient with SHA-256, and "-c core.abbrev=64" won't work with
SHA-1 repos today.

Signed-off-by: Eric Wong <e@80x24.org>
[jc: tweaked implementation, added doc and a test]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/core.txt
config.c
t/t3200-branch.sh