summaryrefslogtreecommitdiff
path: root/commit-graph.c
diff options
context:
space:
mode:
authorLibravatar Taylor Blau <me@ttaylorr.com>2021-06-23 14:39:07 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-06-28 20:36:17 -0700
commitf9221e2cf5049805d9151b3db6a5eef07b1cc92e (patch)
tree962e5c2742ae80de7f45353ba5813580caeeaa99 /commit-graph.c
parentGit 2.32 (diff)
downloadtgif-f9221e2cf5049805d9151b3db6a5eef07b1cc92e.tar.xz
csum-file: introduce checksum_valid()
Introduce a new function which checks the validity of a file's trailing checksum. This is similar to hashfd_check(), but different since it is intended to be used by callers who aren't writing the same data (like `git index-pack --verify`), but who instead want to validate the integrity of data that they are reading. Rewrite the first of two callers which could benefit from this new function in pack-check.c. Subsequent callers will be added in the following patches. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions