aboutsummaryrefslogtreecommitdiffstats
path: root/merge-blobs.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2024-02-24 22:47:06 +0100
committerJunio C Hamano <gitster@pobox.com>2024-02-26 08:58:45 -0800
commit87bd7fbb9c3e165a68046e04bf12f5a76cae2965 (patch)
tree4ab413c3d9c3a1bf7cb12b1b1784697dfa253141 /merge-blobs.c
parentGit 2.44 (diff)
downloadgit-87bd7fbb9c3e165a68046e04bf12f5a76cae2965.tar.gz
git-87bd7fbb9c3e165a68046e04bf12f5a76cae2965.zip
fetch: convert strncmp() with strlen() to starts_with()
Using strncmp() and strlen() to check whether a string starts with another one requires repeating the prefix candidate. Use starts_with() instead, which reduces repetition and is more readable. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-blobs.c')
0 files changed, 0 insertions, 0 deletions