Subject: Re: [PATCH 5/6] Teach git-describe --exact-match to avoid expensive tag searches

From: Jakub Narebski <[email-masked]>
Date: Sun, 24 Feb 2008 02:25:33 -0800 (PST)

"Shawn O. Pearce" <[email-masked]> writes:

>  A common idiom is to run git-describe twice:
> 
>   if test $(git describe $commit) = $(git describe --abbrev=0 $commit)
>   ...

Wouldn't it be easier to use?

    if test $(git rev-parse $(git describe --abbrev=0 $commit)^0) = $commit

But this is also one unnecessary, although not as costly, call to git
command.
-- 
Jakub Narebski
Poland
ShadeHawk on #git