Skip to content

some minor starts_with()/skip_prefix() cleanups

Jeff King git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2convert trivial uses of strncmp() to starts_with()builtin/remote-fd.c bundle-uri.c ref-filter.c +1 more+6 -60 replies
2/2convert trivial uses of strncmp() to skip_prefix()builtin/remote-ext.c ws.c+8 -53 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] some minor starts_with()/skip_prefix() cleanups

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