summaryrefslogtreecommitdiff
path: root/builtin/fsck.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-11-12 09:47:04 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-13 14:22:02 +0900
commitb2ac148faecc95243ed8da0b75f63966d828c802 (patch)
tree849818368e72e1a7a3f8130c01620d9a9cee4753 /builtin/fsck.c
parentfsck: do not reuse child_process structs (diff)
downloadtgif-b2ac148faecc95243ed8da0b75f63966d828c802.tar.xz
submodule--helper: prefer strip_suffix() to ends_with()
Using strip_suffix() lets us avoid repeating ourselves. It also makes the handling of "/" a bit less subtle (we strip one less character than we matched in order to leave it in place, but we can just as easily include the "/" when we add more path components). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fsck.c')
0 files changed, 0 insertions, 0 deletions