Re: [PATCH] rev-list: make "struct rev_list_info" static to the only user
- From
Jeff King <peff@peff.net>
- Date
- Jul 19, 2025, 06:35 UTC
- Message-ID
- <20250719063551.GA705356@coredump.intra.peff.net>
- In-Reply-To
- <xmqqa551127o.fsf@gitster.g>
On Fri, Jul 18, 2025 at 04:58:03PM -0700, Junio C Hamano wrote:
> The structure has nothing to do with what "git bisect" does; as > nobody other than "git rev-list" implementation uses it, move it > as a private data type to builtin/rev-list.c
Nice improvement.
Show 9 quoted lines
> @@ -652,7 +660,7 @@ int cmd_rev_list(int argc, > */ > /* > * NEEDSWORK: These loops that attempt to find presence of > - * options without understanding that the options they are > + * options without understanding the options they are > * skipping are broken (e.g., it would not know "--grep > * --exclude-promisor-objects" is not triggering > * "--exclude-promisor-objects" option). We really need
This tacked-on bit seems funny to me. Isn't the original more correct? The loops do not understand that the options are broken.
-Peff