aboutsummaryrefslogtreecommitdiffstats
path: root/refs/ref-cache.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2021-10-08 14:08:16 -0700
committerJunio C Hamano <gitster@pobox.com>2021-10-08 15:06:06 -0700
commit8788195c8846be949e6cd4bd19c8dc5e6371ffd3 (patch)
tree083f441572e55b2726e2bea2bad031ef317278a6 /refs/ref-cache.h
parentrefs: teach arbitrary repo support to iterators (diff)
downloadgit-8788195c8846be949e6cd4bd19c8dc5e6371ffd3.tar.gz
git-8788195c8846be949e6cd4bd19c8dc5e6371ffd3.zip
refs: peeling non-the_repository iterators is BUG
There is currently no support for peeling the current ref of an iterator iterating over a non-the_repository ref store, and none is needed. Thus, for now, BUG() if that happens. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/ref-cache.h')
-rw-r--r--refs/ref-cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/refs/ref-cache.h b/refs/ref-cache.h
index 3bfb89d2b3..7877bf86ed 100644
--- a/refs/ref-cache.h
+++ b/refs/ref-cache.h
@@ -238,6 +238,7 @@ struct ref_entry *find_ref_entry(struct ref_dir *dir, const char *refname);
*/
struct ref_iterator *cache_ref_iterator_begin(struct ref_cache *cache,
const char *prefix,
+ struct repository *repo,
int prime_dir);
#endif /* REFS_REF_CACHE_H */