Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2017-03-26 19:01:35 +0300
committerJunio C Hamano <gitster@pobox.com>2017-03-28 19:59:34 +0300
commit2eb80bcdcc2d16ff1e73dc2f2171f7f1ef6e9f29 (patch)
tree12548f87cde97140ebbb089c3ed55ee863586573 /submodule.c
parentd2b7d9c7edc549e7ec19f4a7681adc7bfbaa6b89 (diff)
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>
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/submodule.c b/submodule.c
index 3200b7bb2b..5c5c18ec3d 100644
--- a/submodule.c
+++ b/submodule.c
@@ -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)