mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
Convert object iteration callbacks to struct object_id
Convert each_loose_object_fn and each_packed_object_fn to take a pointer to struct object_id. Update the various callbacks. Convert several 40-based constants to use GIT_SHA1_HEXSZ. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
068f85e313
commit
76c1d9a096
@@ -19,12 +19,12 @@ static int prune_subdir(int nr, const char *path, void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int prune_object(const unsigned char *sha1, const char *path,
|
||||
static int prune_object(const struct object_id *oid, const char *path,
|
||||
void *data)
|
||||
{
|
||||
int *opts = data;
|
||||
|
||||
if (!has_sha1_pack(sha1))
|
||||
if (!has_sha1_pack(oid->hash))
|
||||
return 0;
|
||||
|
||||
if (*opts & PRUNE_PACKED_DRY_RUN)
|
||||
|
||||
Reference in New Issue
Block a user