]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.h
Merge branch 'ab/test-lib'
[thirdparty/git.git] / refs.h
diff --git a/refs.h b/refs.h
index 71d56cb4b252f73e624a3d2726c0ae0d2877f294..48970dfc7e0f0d6263a3faca9d92aa887a60d0e4 100644 (file)
--- a/refs.h
+++ b/refs.h
@@ -347,6 +347,15 @@ int refs_for_each_fullref_in(struct ref_store *refs, const char *prefix,
 int for_each_fullref_in(const char *prefix, each_ref_fn fn, void *cb_data,
                        unsigned int broken);
 
+/**
+ * iterate all refs in "patterns" by partitioning patterns into disjoint sets
+ * and iterating the longest-common prefix of each set.
+ *
+ * callers should be prepared to ignore references that they did not ask for.
+ */
+int for_each_fullref_in_prefixes(const char *namespace, const char **patterns,
+                                each_ref_fn fn, void *cb_data,
+                                unsigned int broken);
 /**
  * iterate refs from the respective area.
  */