]> git.ipfire.org Git - thirdparty/git.git/blobdiff - oidset.h
config.mak.uname: remove unused the NO_R_TO_GCC_LINKER flag
[thirdparty/git.git] / oidset.h
index 209ae7a1736e49818acc1e05b7f3cb4aceada0fe..01f6560283c38660a010ab84d90c24c9a0219189 100644 (file)
--- a/oidset.h
+++ b/oidset.h
@@ -73,6 +73,15 @@ void oidset_clear(struct oidset *set);
  */
 void oidset_parse_file(struct oidset *set, const char *path);
 
+/*
+ * Similar to the above, but with a callback which can (1) return non-zero to
+ * signal displeasure with the object and (2) replace object ID with something
+ * else (meant to be used to "peel").
+ */
+typedef int (*oidset_parse_tweak_fn)(struct object_id *, void *);
+void oidset_parse_file_carefully(struct oidset *set, const char *path,
+                                oidset_parse_tweak_fn fn, void *cbdata);
+
 struct oidset_iter {
        kh_oid_set_t *set;
        khiter_t iter;