diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-07-16 17:42:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-16 17:42:49 -0700 |
commit | f0ade787acb2c94f2cbf4b4b169818166315210f (patch) | |
tree | 78001988e65e7efd75c1d641f46e51af6db76cc2 /refs.c | |
parent | 3cc43bff9cd93ddd4ac56e17757be94f130224ae (diff) | |
parent | 617480d75bdca266d4549e4047452c633ddb7a52 (diff) | |
download | git-f0ade787acb2c94f2cbf4b4b169818166315210f.tar.gz |
Merge branch 'hn/refs-iterator-peel-returns-boolean'
Tiny API tweak.
* hn/refs-iterator-peel-returns-boolean:
refs: make explicit that ref_iterator_peel returns boolean
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2010,7 +2010,7 @@ int peel_iterated_oid(const struct object_id *base, struct object_id *peeled) oideq(current_ref_iter->oid, base))) return ref_iterator_peel(current_ref_iter, peeled); - return peel_object(base, peeled); + return peel_object(base, peeled) ? -1 : 0; } int refs_create_symref(struct ref_store *refs, |