Subject: Re: git-describe hash length

From: Tomas Carnecky <[email-masked]>
Date: Thu, 22 Jan 2009 13:34:06 +0100

On 01/22/2009 12:26 PM, Martin Pirker wrote:
> Hi!
>
>
> john@doe:/workspace$ git version
> git version 1.6.1
> john@doe:/workspace$ git describe
> fatal: cannot describe '7aee61cc635a923e70b74091486742481ee0928b'
> john@doe:/workspace$ git describe --always
> 7aee61c
> john@doe:/workspace$ git describe --always --abbrev=8
> 7aee61cc
>
>
> man git-describe:
>
>    --abbrev=<n>
>        Instead of using the default 8 hexadecimal digits as the
>        abbreviated object name, use<n>  digits.
>
>
>
> There is one character missing from default or what am I missing?

The man page is wrong:

cache.h:#define DEFAULT_ABBREV 7
builtin-describe.c:static int abbrev = DEFAULT_ABBREV;

tom