From: Jakub Narebski Date: Sun, 24 Feb 2008 10:25:33 GMT Subject: Re: [PATCH 5/6] Teach git-describe --exact-match to avoid expensive tag searches Message-ID: In-Reply-To: <20080224080731.GE22587@spearce.org> "Shawn O. Pearce" 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