Skip to content

Commit a71f09f

Browse files
committed
Rename core.abbrevlength back to core.abbrev
It corresponds to --abbrev=$n command line option after all. Signed-off-by: Junio C Hamano <[email protected]>
1 parent dce9648 commit a71f09f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/config.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ core.sparseCheckout::
567567
Enable "sparse checkout" feature. See section "Sparse checkout" in
568568
linkgit:git-read-tree[1] for more information.
569569

570-
core.abbrevLength::
570+
core.abbrev::
571571
Set the length object names are abbreviated to. If unspecified,
572572
many commands abbreviate to 7 hexdigits, which may not be enough
573573
for abbreviated object names to stay unique for sufficiently long

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ static int git_default_core_config(const char *var, const char *value)
531531
return 0;
532532
}
533533

534-
if (!strcmp(var, "core.abbrevlength")) {
534+
if (!strcmp(var, "core.abbrev")) {
535535
int abbrev = git_config_int(var, value);
536536
if (abbrev < minimum_abbrev || abbrev > 40)
537537
return -1;

0 commit comments

Comments
 (0)