summaryrefslogtreecommitdiffstats
path: root/list-objects.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:49:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 09:49:36 +0000
commit5ec6074f0633939fd17d94111d10c6c6b062978c (patch)
treebfaa17b5a64abc66c918e9c70969e519d9e1df8e /list-objects.h
parentInitial commit. (diff)
downloadgit-upstream.tar.xz
git-upstream.zip
Adding upstream version 1:2.30.2.upstream/1%2.30.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'list-objects.h')
-rw-r--r--list-objects.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/list-objects.h b/list-objects.h
new file mode 100644
index 0000000..a952680
--- /dev/null
+++ b/list-objects.h
@@ -0,0 +1,28 @@
+#ifndef LIST_OBJECTS_H
+#define LIST_OBJECTS_H
+
+struct commit;
+struct object;
+struct rev_info;
+
+typedef void (*show_commit_fn)(struct commit *, void *);
+typedef void (*show_object_fn)(struct object *, const char *, void *);
+void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *);
+
+typedef void (*show_edge_fn)(struct commit *);
+void mark_edges_uninteresting(struct rev_info *revs,
+ show_edge_fn show_edge,
+ int sparse);
+
+struct oidset;
+struct list_objects_filter_options;
+
+void traverse_commit_list_filtered(
+ struct list_objects_filter_options *filter_options,
+ struct rev_info *revs,
+ show_commit_fn show_commit,
+ show_object_fn show_object,
+ void *show_data,
+ struct oidset *omitted);
+
+#endif /* LIST_OBJECTS_H */