diff options
author | Yuxuan Shui <yshuiv7@gmail.com> | 2014-03-13 12:45:51 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-03-19 15:34:56 -0700 |
commit | 2d820a61dfd50d50cafab47f75a507f3e6657e9b (patch) | |
tree | f43faae9baa38e3b582f4db1f1cfa8cee225078d /t/t0100-previous.sh | |
parent | fsck.c:fsck_ident(): ident points at a const string (diff) | |
download | tgif-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/t0100-previous.sh')
0 files changed, 0 insertions, 0 deletions