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
Junio C Hamano <junkio@cox.net>
Date
Nov 26, 2006, 20:16 UTC
Message-ID
<7v7ixit13h.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<e5bfff550611260827t686a5071w7f050f17f784e5d9@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
Show 27 quoted lines
> In a StGit repository the --all option causes a lot of spurious
> revisions, possibly stgit related.
>
> $ git branch
> * master
>  origin
>  test
>
> $ git rev-list master origin test -- src/settingsimpl.cpp | wc
>     13      13     533
>
> $ git rev-list --all -- src/settingsimpl.cpp | wc
>     26      26    1066
>
>
> The extra revisions have shortlogs of the kind of:
>
> push        a3bc76fd0bdd154149c26a3c208f0344e9cd873b
> new e7baf56544cd8b4f8601a35fad274b8de97fd558
> refresh     8fa01a56a40b04ed9c6d006c669ca9d370176728
>
>>From qgit these are easily seen from file history tab of a file
> modified by stgit patches or when filtering in main view on the same
> file.
>
> Shouldn't 'git-rev-list --all'  print  *the same output* of when the
> list  with all branches is given in command line?

Should it? The "--all" option is about "all refs", not "all user branches" and it has been so from the beginning. For one thing it has to do the reachability thing also for tags (otherwise it cannot be used as the upstream for git-repack pipeline).

You are looking at .git/refs/bases/ refs that StGIT uses for its internal bookkeeping.

Previous: Marco CostalbaNext: Marco Costalba
Message 2 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.