aboutsummaryrefslogtreecommitdiff
path: root/line-log.c
diff options
context:
space:
mode:
authorYuxuan Shui <yshuiv7@gmail.com>2014-03-13 12:45:51 +0800
committerJunio C Hamano <gitster@pobox.com>2014-03-19 15:34:56 -0700
commit2d820a61dfd50d50cafab47f75a507f3e6657e9b (patch)
treef43faae9baa38e3b582f4db1f1cfa8cee225078d /line-log.c
parentde42180f6a645491c7ca8683ff2d5060f85f0c51 (diff)
downloadgit-2d820a61dfd50d50cafab47f75a507f3e6657e9b.tar.gz
git-2d820a61dfd50d50cafab47f75a507f3e6657e9b.tar.xz
fsck.c:fsck_commit(): use skip_prefix() to verify and skip constant
fsck_commit() uses memcmp() to check if the buffer starts with a certain prefix, and skips the prefix if it does. This is exactly what skip_prefix() was designed for. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.c')
0 files changed, 0 insertions, 0 deletions