summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-09-04 18:08:37 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-09-09 15:28:13 -0700
commit1a769003c19c106063f4bf474b0d7ef56be8df25 (patch)
treec79c351f5e344a84886dbf3fa282c9afb53ca75d /refs.c
parentfiles_ref_iterator_begin(): take a ref_store argument (diff)
downloadtgif-1a769003c19c106063f4bf474b0d7ef56be8df25.tar.xz
refs: add method iterator_begin
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/refs.c b/refs.c
index 3d007ba022..91174e60f7 100644
--- a/refs.c
+++ b/refs.c
@@ -1157,7 +1157,7 @@ static int do_for_each_ref(const char *submodule, const char *prefix,
if (!refs)
return 0;
- iter = files_ref_iterator_begin(refs, prefix, flags);
+ iter = refs->be->iterator_begin(refs, prefix, flags);
iter = prefix_ref_iterator_begin(iter, prefix, trim);
return do_for_each_ref_iterator(iter, fn, cb_data);