Re: [PATCH] bisect: Store first bad commit as comment in log file
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 15, 2013, 15:00 UTC
- Message-ID
- <7vwqs3zvmu.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20130415095339.GA28480@pvv.ntnu.no>
Torstein Hegge <hegge@resisty.net> writes:
> I was wondering why "git grep show-ref *.sh" gave so few users. It looks > like rev-parse is more common.
It is primarily because show-ref is slightly newer. When you have a full refname (e.g. refs/bisect/bad) and not an arbitrary object name that is spelled in a random way (e.g. master~24):
show-ref --verify refs/bisect/bad
is a perfectly valid way to make sure it _is_ an existing ref.
Cf. 358ddb62cfd0 (Add "git show-ref" builtin command, 2006-09-15)