Re: [PATCH] trailers: stop recognizing URLs as trailers

Junio C Hamano <[email protected]> Mon, 03 Aug 2026 08:39:10 -0700
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
Jeff King <[email protected]> writes:

> As discussed elsewhere, we are free to match with short-circuiting
> because of the NUL termination. But that also means we could write this
> as:
>
>   if (starts_with(c, "://") && !whitespace_found)
>
> which is perhaps a little more readable.

"little more" -> "much more" ;-).