[PATCH 0/2] some minor starts_with()/skip_prefix() cleanups
- From
Jeff King <peff@peff.net>
- Date
- Jan 7, 2023, 13:24 UTC
- Message-ID
- <Y7lyga5g2leSmWQd@coredump.intra.peff.net>
I happened to notice a recently-introduced strncmp() that could have been a starts_with(). So I grepped and found a few more, and this is the result.
[1/2]: convert trivial uses of strncmp() to starts_with() [2/2]: convert trivial uses of strncmp() to skip_prefix()
builtin/remote-ext.c | 6 ++++-- builtin/remote-fd.c | 2 +- bundle-uri.c | 2 +- ref-filter.c | 2 +- urlmatch.c | 6 +++--- ws.c | 7 ++++--- 6 files changed, 14 insertions(+), 11 deletions(-)
-Peff