git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Nov 28, 2006, 12:11 UTC
Message-ID
<e5bfff550611280411q737fc47s5a221bae078333b5@mail.gmail.com>
In-Reply-To
<7vd57855fy.fsf@assigned-by-dhcp.cox.net>
On 11/28/06, Junio C Hamano <junkio@cox.net> wrote:
Show 16 quoted lines
> "Marco Costalba" <mcostalba@gmail.com> writes:
>
> >> 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
Previous: Junio C Hamano
Message 10 of 10 in “Possible BUG with git-rev-list --all in a StGit repository”
  1. Marco CostalbaNov 26, 2006
  2. Junio C HamanoNov 26, 2006
  3. Marco CostalbaNov 27, 2006
  4. Marco CostalbaNov 27, 2006
  5. Junio C HamanoNov 27, 2006
  6. revision traversal: Add --refs=<pattern> optionSergey Vlasov, Nov 27, 2006
  7. Junio C HamanoNov 27, 2006
  8. Marco CostalbaNov 28, 2006
  9. Junio C HamanoNov 28, 2006
  10. Marco CostalbaNov 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.