X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=describe.c;h=ff65742615cb6862d3699e4f301d671a7eadc2e2;hb=13ccd6d4f2086ace8f70dc8a60a40ac5836dc881;hp=4866510eafa19fbfe74e11d20e5d2d1a0a44fd4b;hpb=949964c4af740015c53cb7630fea8795e0f710a0;p=git.git diff --git a/describe.c b/describe.c index 4866510e..ff657426 100644 --- a/describe.c +++ b/describe.c @@ -11,7 +11,6 @@ static const char describe_usage[] = static int all = 0; /* Default to annotated tags only */ static int tags = 0; /* But allow any tags if --tags is specified */ -#define DEFAULT_ABBREV 8 /* maybe too many */ static int abbrev = DEFAULT_ABBREV; static int names = 0, allocs = 0; @@ -155,7 +154,7 @@ int main(int argc, char **argv) tags = 1; else if (!strncmp(arg, "--abbrev=", 9)) { abbrev = strtoul(arg + 9, NULL, 10); - if (abbrev < 4 || 40 <= abbrev) + if (abbrev < MINIMUM_ABBREV || 40 <= abbrev) abbrev = DEFAULT_ABBREV; } else