Re: [PATCH v4 1/2] revision.c: implement -b-reverse=before for walks
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 28, 2026, 01:46 UTC
- Message-ID
- <xmqqjytr26xe.fsf@gitster.g>
- In-Reply-To
- <ae-J4ooz2PJ8bZAq@exploit>
Mirko Faina <mroik@delayed.space> writes:
Show 7 quoted lines
>> It might be that the right way to look at this new feature is not that >> "we are changing where reverse is applied", but "count limit is applied >> much later than usual" > > maybe --max-count-later as in max count is being applied later than > usual? (either way the users will still need to reach for the man pages > for clarifications).
I very much more prefer what J6t suggested, which (if I am understanding him correctly) would make
git log --max-count-oldest=3 $options
conceptually run "git log" (without count limit but with other options like --grep, --author, --since, etc. applied) without showing anything until the last three commits remains, and then shows these last three commits.
git log --max-count-oldest=3 --reverse $options
would show these same last three commits, but in the order opposite to the first one.