"Shawn O. Pearce" <spearce@xxxxxxxxxxx> 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html