Re: git rev-list ordering
- From
- Sverre 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