commit-graph: introduce `commit_graph_generation_from_graph()`
[alt-git.git] / list-objects.h
blob9eaf4de844950017a947df7efbcceaf9f0d9feb5
1 #ifndef LIST_OBJECTS_H
2 #define LIST_OBJECTS_H
4 struct commit;
5 struct object;
6 struct rev_info;
8 typedef void (*show_commit_fn)(struct commit *, void *);
9 typedef void (*show_object_fn)(struct object *, const char *, void *);
11 typedef void (*show_edge_fn)(struct commit *);
12 void mark_edges_uninteresting(struct rev_info *revs,
13 show_edge_fn show_edge,
14 int sparse);
16 struct oidset;
17 struct list_objects_filter_options;
19 void traverse_commit_list_filtered(
20 struct rev_info *revs,
21 show_commit_fn show_commit,
22 show_object_fn show_object,
23 void *show_data,
24 struct oidset *omitted);
26 static inline void traverse_commit_list(
27 struct rev_info *revs,
28 show_commit_fn show_commit,
29 show_object_fn show_object,
30 void *show_data)
32 traverse_commit_list_filtered(revs, show_commit,
33 show_object, show_data, NULL);
36 #endif /* LIST_OBJECTS_H */