summaryrefslogtreecommitdiff
path: root/t/t3904-stash-patch.sh
diff options
context:
space:
mode:
authorLibravatar Yuxuan Shui <yshuiv7@gmail.com>2014-03-13 12:45:51 +0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-19 15:34:56 -0700
commit2d820a61dfd50d50cafab47f75a507f3e6657e9b (patch)
treef43faae9baa38e3b582f4db1f1cfa8cee225078d /t/t3904-stash-patch.sh
parentfsck.c:fsck_ident(): ident points at a const string (diff)
downloadtgif-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 't/t3904-stash-patch.sh')
0 files changed, 0 insertions, 0 deletions