submodule: convert check_for_new_submodule_commits to object_id
All of the callers of this function have been converted, so convert this function and update the callers. This function also calls sha1_array_append, which we'll convert shortly. 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
d2b7d9c7ed
commit
2eb80bcdcc
@ -821,14 +821,14 @@ static int add_sha1_to_array(const char *ref, const struct object_id *oid,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void check_for_new_submodule_commits(unsigned char new_sha1[20])
|
||||
void check_for_new_submodule_commits(struct object_id *oid)
|
||||
{
|
||||
if (!initialized_fetch_ref_tips) {
|
||||
for_each_ref(add_sha1_to_array, &ref_tips_before_fetch);
|
||||
initialized_fetch_ref_tips = 1;
|
||||
}
|
||||
|
||||
sha1_array_append(&ref_tips_after_fetch, new_sha1);
|
||||
sha1_array_append(&ref_tips_after_fetch, oid->hash);
|
||||
}
|
||||
|
||||
static int add_sha1_to_argv(const unsigned char sha1[20], void *data)
|
||||
|
Reference in New Issue
Block a user