Merge branch 'jk/make-findstring-makeflags-fix'
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 24401f71f8a8dd9fc336b91bff974633727a155f..91c88bad4a764e20c810276fc5b9c1689ba328c3 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -2131,6 +2131,15 @@ int for_each_ref_in(const char *prefix, each_ref_fn fn, void *cb_data)
        return do_for_each_ref(&ref_cache, prefix, fn, strlen(prefix), 0, cb_data);
 }
 
+int for_each_fullref_in(const char *prefix, each_ref_fn fn, void *cb_data, unsigned int broken)
+{
+       unsigned int flag = 0;
+
+       if (broken)
+               flag = DO_FOR_EACH_INCLUDE_BROKEN;
+       return do_for_each_ref(&ref_cache, prefix, fn, 0, flag, cb_data);
+}
+
 int for_each_ref_in_submodule(const char *submodule, const char *prefix,
                each_ref_fn fn, void *cb_data)
 {