factor out refresh_and_write_cache function
[git/git.git] / list-objects.h
CommitLineData
c64ed70d
JH
1#ifndef LIST_OBJECTS_H
2#define LIST_OBJECTS_H
3
ef3ca954
EN
4struct commit;
5struct object;
6struct rev_info;
7
11c211fa 8typedef void (*show_commit_fn)(struct commit *, void *);
de1e67d0 9typedef void (*show_object_fn)(struct object *, const char *, void *);
11c211fa 10void traverse_commit_list(struct rev_info *, show_commit_fn, show_object_fn, void *);
8d1d8f83 11
49473672 12typedef void (*show_edge_fn)(struct commit *);
4f6d26b1
DS
13void mark_edges_uninteresting(struct rev_info *revs,
14 show_edge_fn show_edge,
15 int sparse);
c64ed70d 16
25ec7bca
JH
17struct oidset;
18struct list_objects_filter_options;
19
20void traverse_commit_list_filtered(
21 struct list_objects_filter_options *filter_options,
22 struct rev_info *revs,
23 show_commit_fn show_commit,
24 show_object_fn show_object,
25 void *show_data,
26 struct oidset *omitted);
27
28#endif /* LIST_OBJECTS_H */