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

Re: [BUG] git rev-list --no-walk A B C sorts by commit date incorrectly

From
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Date
Jan 12, 2011, 00:54 UTC
Message-ID
<alpine.DEB.1.10.1101111949230.856@debian>
In-Reply-To
<7vaaja8sxd.fsf@alter.siamese.dyndns.org>
On Sat, 8 Jan 2011, Junio C Hamano wrote:
Show 11 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
> > "git rev-list --no-walk ^HEAD~3 HEAD"?  Isn't it a nonsense?  If it is "no
> > walk", then why do you even list a negative one?
> 
> The above was my thinko.
> 
> When you explicitly give range to no-walk, you override that no-walk with
> "please walk".  This is primarily to help Linus who wanted to do "git show
> HEAD~3..HEAD"---see how his thinking changed over time by comparing
> aa27e461 and f222abde.

Just a quick note: I didn't know that 'git show' was supposed to support that syntax, so I had try it out. When I ran 'git show origin/master..' on my branch, which was not rebase on top of origin/master, it seemed to print the history all the way back. It seems to stop only if all the positive refences contain the negative reference. Is this intended? Not that it matter much, since 'git log -p' seems to do the same thing but stops where I expect...

Previous: Junio C Hamano
Message 7 of 7 in “[BUG] git rev-list --no-walk A B C sorts by commit date incorrectly”
  1. Kevin BallardJan 8, 2011
  2. Junio C HamanoJan 8, 2011
  3. Kevin BallardJan 8, 2011
  4. Junio C HamanoJan 8, 2011
  5. Kevin BallardJan 8, 2011
  6. Junio C HamanoJan 9, 2011
  7. Martin von ZweigbergkJan 12, 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.