Re: [PATCH v4 0/4] for-each-ref: introduce seeking functionality via '--start-after'
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 14, 2025, 16:49 UTC
- Message-ID
- <xmqqms96u38z.fsf@gitster.g>
- In-Reply-To
- <CAP8UFD0anB4dPDf99-w6dyZNNGuOKU-b30_k322D0EsWE0cKPQ@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> writes:
Show 8 quoted lines
> On Fri, Jul 11, 2025 at 6:20 PM Karthik Nayak <karthik.188@gmail.com> wrote: > >> Initially I was also planning to cleanup all the `refs_for_each...()` >> functions in 'refs.h' by simply using the iterator, but this bloated the >> series. So I've left that for another day. > > I wonder if there is a plan to add the '--start-after' option to `git > branch` and `git tag` too?
Good question.
"git for-each-ref" is for scripters, "git branch/tag" are for humans. And humans do not page (outside "more/less").
So while it may be trivial to expose the feature to these Porcelain commands, it is not obvious that it is a good idea worth cluttering "git tag -h" output.