diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2017-10-16 01:06:54 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-16 05:05:50 +0300 |
commit | 6ccac9eed56280f035d84605b4451ae1721a3100 (patch) | |
tree | e46294f721012ad1d50682ea65151b45c6f1f8a1 /builtin/clone.c | |
parent | 89f3bbdd3b1f46a5747aa5618b7742f7b3f2adef (diff) |
Convert check_connected to use struct object_id
Convert check_connected and the callbacks it takes to use struct
object_id.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 665a0e2673..5cd1b02d53 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -615,7 +615,7 @@ static void write_followtags(const struct ref *refs, const char *msg) } } -static int iterate_ref_map(void *cb_data, unsigned char sha1[20]) +static int iterate_ref_map(void *cb_data, struct object_id *oid) { struct ref **rm = cb_data; struct ref *ref = *rm; @@ -630,7 +630,7 @@ static int iterate_ref_map(void *cb_data, unsigned char sha1[20]) if (!ref) return -1; - hashcpy(sha1, ref->old_oid.hash); + oidcpy(oid, &ref->old_oid); *rm = ref->next; return 0; } |