From a9ecaa06a7235e62a9cf4703a19463fcee4449c7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 1 Sep 2020 07:43:55 +0000 Subject: 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 [jc: tweaked implementation, added doc and a test] Signed-off-by: Junio C Hamano --- Documentation/config/core.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Documentation/config/core.txt') diff --git a/Documentation/config/core.txt b/Documentation/config/core.txt index 74619a9c03..15da9a4ed4 100644 --- a/Documentation/config/core.txt +++ b/Documentation/config/core.txt @@ -625,4 +625,6 @@ core.abbrev:: computed based on the approximate number of packed objects in your repository, which hopefully is enough for abbreviated object names to stay unique for some time. + If set to "no", no abbreviation is made and the object names + are shown in their full length. The minimum length is 4. -- cgit v1.2.3