Re: Possible BUG with git-rev-list --all in a StGit repository

2 messages, 2 authors, 2016-08-11 · open the first message on its own page

Re: Possible BUG with git-rev-list --all in a StGit repository

From: Junio C Hamano <hidden>
Date: 2016-08-11 19:57:14

"Marco Costalba" [off-list ref] writes:
quoted
If you (as a Porcelain) want to get all refs under refs/heads/,
there are (unfortunately) two ways to get that list.  I would
suggest obtain the refs you want that way, pass them as command
line arguments to rev-list.
Unfortunatly that does not work in case a branch and a tag have the same name.
I am not quite grokking what the problem you are trying to solve
is, so this is a shot in the dark, but

	git rev-list refs/heads/test refs/tags/test

to disambiguate, perhaps?

Re: Possible BUG with git-rev-list --all in a StGit repository

From: Marco Costalba <hidden>
Date: 2016-08-11 20:05:31

On 11/28/06, Junio C Hamano [off-list ref] wrote:
"Marco Costalba" [off-list ref] writes:
quoted
quoted
If you (as a Porcelain) want to get all refs under refs/heads/,
there are (unfortunately) two ways to get that list.  I would
suggest obtain the refs you want that way, pass them as command
line arguments to rev-list.
Unfortunatly that does not work in case a branch and a tag have the same name.
I am not quite grokking what the problem you are trying to solve
is, so this is a shot in the dark, but

        git rev-list refs/heads/test refs/tags/test

to disambiguate, perhaps?
Interesting!

I didn't think about 'full path' explicitation. If the barnches are
always and only under refs/heads this should work.

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