]> git.ipfire.org Git - thirdparty/git.git/commit - fsck.c
fsck: pull out function to check a set of blobs
authorPatrick Steinhardt <ps@pks.im>
Thu, 1 Dec 2022 14:46:01 +0000 (15:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Dec 2022 08:05:00 +0000 (17:05 +0900)
commita59a8c687f18db2b4c54a9d0795f93c4df1f9703
tree41b31f2558c61dbd5912854ea9e0567685ed8b99
parentbb3a9265e505e9593faa260860f9b8929af0963e
fsck: pull out function to check a set of blobs

In `fsck_finish()` we check all blobs for consistency that we have found
during the tree walk, but that haven't yet been checked. This is only
required for gitmodules right now, but will also be required for a new
check for gitattributes.

Pull out a function `fsck_blobs()` that allows the caller to check a set
of blobs for consistency.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c