Thread (1 message) 1 message, 1 author, 2017-01-20

Re: [PATCH] show-ref: Allow --head to work with --verify

From: Junio C Hamano <hidden>
Date: 2017-01-20 23:15:50

Junio C Hamano [off-list ref] writes:
Your log message for the patch needs to be updated by summarizing
the above better.
Here is my attempt.

     "git show-ref HEAD" used with "--verify" (because the user is
     not interested in seeing refs/remotes/origin/HEAD), and used
     with "--head" (because the user does not want HEAD to be
     filtered out), i.e. "git show-ref --head --verify HEAD", did
     not work as expected.

     Instead of insisting that the input begins with "refs/", allow
     "HEAD" when "--head" is given in the codepath that handles
     "--verify", so that all valid full refnames including HEAD are
     passed to the same output machinery.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help