Re: [PATCH 0/2] builtin/show-ref.c: support `--count` for limiting output
- From
Derrick Stolee <derrickstolee@github.com>
- Date
- Jun 7, 2022, 19:41 UTC
- Message-ID
- <73a973fa-cb44-b92e-e8c0-b68e14b4bd34@github.com>
- In-Reply-To
- <xmqqk09t4cun.fsf@gitster.g>
On 6/6/2022 7:00 PM, Junio C Hamano wrote:
Show 7 quoted lines
> Taylor Blau <me@ttaylorr.com> writes: > >> If you're strongly opposed to having `show-ref` match `for-each-ref`'s >> `--count` option, I won't be too sad. But I'm not in a huge rush to >> replace this series with `git --pipe-to-head-N=<n>` either, FWIW. > > Heh, to me "git --pipe-to-head-N=<n>" smells equally absurd, too ;-)
I wonder if we could teach Git to skip an extra process if we see
git -c "core.pager=head -n=<N>" ...
?
Thanks, -Stolee