diff options
author | René Scharfe <l.s.r@web.de> | 2017-01-29 01:03:06 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-01-31 01:23:42 +0300 |
commit | 8694769f3ce9e77994a67e3ff8973dfe01fbe37c (patch) | |
tree | b4b3763e5bb4fd51ec2bf516f048924e4d37db72 /refs | |
parent | 2490574d15cab6e8d955dc4132cf9e7e83fc1172 (diff) |
use oidcpy() for copying hashes between instances of struct object_id
Patch generated by Coccinelle and contrib/coccinelle/object_id.cocci.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index f9023939d5..8ee2aba39f 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -697,7 +697,7 @@ static int cache_ref_iterator_peel(struct ref_iterator *ref_iterator, if (peel_entry(entry, 0)) return -1; - hashcpy(peeled->hash, entry->u.value.peeled.hash); + oidcpy(peeled, &entry->u.value.peeled); return 0; } |