aboutsummaryrefslogtreecommitdiff
path: root/refs/refs-internal.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-07-16 17:42:49 -0700
committerJunio C Hamano <gitster@pobox.com>2021-07-16 17:42:49 -0700
commitf0ade787acb2c94f2cbf4b4b169818166315210f (patch)
tree78001988e65e7efd75c1d641f46e51af6db76cc2 /refs/refs-internal.h
parent3cc43bff9cd93ddd4ac56e17757be94f130224ae (diff)
parent617480d75bdca266d4549e4047452c633ddb7a52 (diff)
downloadgit-f0ade787acb2c94f2cbf4b4b169818166315210f.tar.xz
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/refs-internal.h')
-rw-r--r--refs/refs-internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/refs/refs-internal.h b/refs/refs-internal.h
index 467f4b3c93..3155708345 100644
--- a/refs/refs-internal.h
+++ b/refs/refs-internal.h
@@ -453,6 +453,9 @@ void base_ref_iterator_free(struct ref_iterator *iter);
*/
typedef int ref_iterator_advance_fn(struct ref_iterator *ref_iterator);
+/*
+ * Peels the current ref, returning 0 for success or -1 for failure.
+ */
typedef int ref_iterator_peel_fn(struct ref_iterator *ref_iterator,
struct object_id *peeled);