Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: `git-rev-parse master` not referred to by any ref?

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:43:31

On Sun, Aug 26, 2007 at 02:26:28PM -0700, Junio C Hamano wrote:
It _might_ make it safer to refuse creating anything outside
refs/ if the name does not contain or ends with "HEAD" (or
perhaps names that have chars outside "[_A-Z]"), but that would
restrict future tools that might want to have HEAD-like files,
so I am a bit hesitant.
Sure.

I would have recovered faster if I'd known had a simple way to get a
list of all the refs that git-rev-parse finds.  Is there an easy way?  I
assume "find .git -name .." will miss packed refs.  Both git-show-ref
and git-for-each-ref seem to ignore top-level references.

Maybe the "refname 'master' is ambiguous" warning could be modified to
list the choices?  I don't know if that would be overkill.

--b.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help