| 1 | #ifndef LIST_OBJECTS_H |
| 2 | #define LIST_OBJECTS_H |
| 3 | |
| 4 | struct commit; |
| 5 | struct object; |
| 6 | struct rev_info; |
| 7 | |
| 8 | typedef void (*show_commit_fn)(struct commit *, void *); |
| 9 | typedef void (*show_object_fn)(struct object *, const char *, void *); |
| 10 | |
| 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); |
| 15 | |
| 16 | struct oidset; |
| 17 | struct list_objects_filter_options; |
| 18 | |
| 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); |
| 25 | |
| 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) |
| 31 | { |
| 32 | traverse_commit_list_filtered(revs, show_commit, |
| 33 | show_object, show_data, NULL); |
| 34 | } |
| 35 | |
| 36 | #endif /* LIST_OBJECTS_H */ |