From: Jeff King <peff@peff.net>
To: git@vger.kernel.org
Subject: [PATCH 0/2] some minor starts_with()/skip_prefix() cleanups
Date: Sat, 7 Jan 2023 08:24:17 -0500 [thread overview]
Message-ID: <Y7lyga5g2leSmWQd@coredump.intra.peff.net> (raw)
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
next reply other threads:[~2023-01-07 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-07 13:24 Jeff King [this message]
2023-01-07 13:26 ` [PATCH 1/2] convert trivial uses of strncmp() to starts_with() Jeff King
2023-01-07 13:26 ` [PATCH 2/2] convert trivial uses of strncmp() to skip_prefix() Jeff King
2023-01-07 13:33 ` Jeff King
2023-01-07 21:29 ` René Scharfe
2023-01-11 18:38 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y7lyga5g2leSmWQd@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).