Re: Teach "git checkout" to use git-show-ref

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Saturday, September 16, 2006 - 2:33 am

Linus Torvalds <torvalds@osdl.org> writes:


I kind of liked the rev-parse one better for this particular
command, but only slightly (by using --verify on "$arg^0", you
were also making sure what's in refs/heads/ was a commit object,
but that check is gone with this patch.  It is not a loss,
because the original code did not check it, and nobody should be
placing anything but commits under refs/heads anyway).


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Add &quot;git show-ref&quot; builtin command, Linus Torvalds, (Fri Sep 15, 11:19 am)
Teach &quot;git checkout&quot; to use git-show-ref, Linus Torvalds, (Fri Sep 15, 2:56 pm)
Re: Teach "git checkout" to use git-show-ref, Junio C Hamano, (Sat Sep 16, 2:33 am)