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

Re: git rev-list ordering

From
SRSverre Rabbelier <alturin@gmail.com>
Date
Nov 16, 2008, 01:27 UTC
Message-ID
<bd6139dc0811151727k605a3575hf409fed32a3a4baf@mail.gmail.com>
In-Reply-To
<alpine.LFD.2.00.0811151922310.2935@sys-0.hiltweb.site>
On Sun, Nov 16, 2008 at 01:44, Ian Hilt <ian.hilt@gmx.com> wrote:
Show 9 quoted lines
> Why is it that this command,
>
>    git rev-list --reverse --max-count=1 <branch>
>
> results in the same SHA1 as,
>
>    git rev-list --max-count=1 <branch>
>
> So far, the documentation and the mailing list archives haven't helped.

The --reverse is applied after the --max-count, so you are seeing the reverse of one commit ;). For comparison, have a look at:

$ git rev-list --reverse --max-count=2
-- 
Cheers,

Sverre Rabbelier
Previous: Ian HiltNext: Ian Hilt
Message 2 of 8 in “git rev-list ordering”
  1. Ian HiltNov 16, 2008
  2. Sverre RabbelierNov 16, 2008
  3. Ian HiltNov 16, 2008
  4. Johannes SchindelinNov 16, 2008
  5. Ian HiltNov 17, 2008
  6. Johannes SchindelinNov 17, 2008
  7. Pete HarlanNov 18, 2008
  8. Björn SteinbrinkNov 19, 2008

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.