summaryrefslogtreecommitdiff
path: root/builtin/commit.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 /builtin/commit.c
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0 (diff)
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 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions