question about git rev-list --max-count=n
- From
Ruediger Meier <sweet_f_a@gmx.de>
- Date
- Sep 27, 2016, 10:40 UTC
- Message-ID
- <201609271240.19759.sweet_f_a@gmx.de>
Hi,
git rev-list --max-count=n
seems to always list the _last_ (newest) n commits. Is there any functionality to list the _first_ n commits?
I've tried to add --reverse hoping that this would do it but it does not.
The manual could be a bit more clear about that:
--max-count=<number> Limit the number of commits to output.If it really would only limit the _output_ (like head -n), then IMO --reverse should do what I want.
Regarding my initial question. Maybe we could support --max-count=-n to list the first n commits.
cu, Rudi