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

Re: [PATCH/RFC 0/3] teaching log's --glob=<glob> and friends to git shortlog

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 21, 2011, 17:40 UTC
Message-ID
<7vtydry038.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110421102241.GA16185@elie>
Jonathan Nieder <jrnieder@gmail.com> writes:
> 	git rev-list ^HEAD --no-walk commit1 commit2 ...

That should be "git rev-list --no-walk ^HEAD commit1 commit2 ..." from the syntactical point of view to begin with, but more importantly, what does it mean to ask excluding commits reachable from HEAD without walking?

As ^HEAD is inherently about walking the history to paint the part of DAG that are not interesting because the nodes in there are reachable from there, the request that command line tries to make does not make much sense.

As I said in
 http://thread.gmane.org/gmane.comp.version-control.git/170457/focus=170629

the "--no-walk" hack happens to work by accident, and we would need to rethink the way it operates and revamp it.

Previous: Jonathan NiederNext: Jonathan Nieder
Message 10 of 11 in “teaching log's --glob=<glob> and friends to git shortlog”
  1. 0/3 teaching log's --glob=<glob> and friends to git shortlogJonathan Nieder, Apr 21, 2011
  2. 1/3 revisions: clarify handling of --no-walk and --do-walkJonathan Nieder, Apr 21, 2011
  3. Michael J GruberApr 21, 2011
  4. Jonathan NiederApr 21, 2011
  5. Michael J GruberApr 24, 2011
  6. Jonathan NiederApr 25, 2011
  7. Michael J GruberApr 26, 2011
  8. 2/3 revisions: split out handle_revision_pseudo_opt functionJonathan Nieder, Apr 21, 2011
  9. 3/3 revisions: allow --glob and friends in parse_options-enabled commandsJonathan Nieder, Apr 21, 2011
  10. Junio C HamanoApr 21, 2011
  11. Jonathan NiederApr 21, 2011

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.