list-objects.h 762 Bytes
Newer Older
1 2 3
#ifndef LIST_OBJECTS_H
#define LIST_OBJECTS_H

4 5 6 7
struct commit;
struct object;
struct rev_info;

8
typedef void (*show_commit_fn)(struct commit *, void *);
9
typedef void (*show_object_fn)(struct object *, const char *, void *);
10
void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *);
11

12
typedef void (*show_edge_fn)(struct commit *);
13 14 15
void mark_edges_uninteresting(struct rev_info *revs,
			      show_edge_fn show_edge,
			      int sparse);
16

17 18 19 20 21 22 23 24 25 26 27 28
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 */