blob: 020a887b99ce106618a9657c52ef7111b58022d1 [file] [log] [blame]
Junio C Hamano94421472007-01-06 02:16:17 -08001#ifndef REACHEABLE_H
2#define REACHEABLE_H
3
Nguyễn Thái Ngọc Duydc347192011-11-05 19:00:08 +07004struct progress;
Elijah Newrenef3ca952018-08-15 10:54:05 -07005struct rev_info;
Taylor Blaua7d49382022-05-20 19:18:00 -04006struct object;
7struct packed_git;
Elijah Newrenef3ca952018-08-15 10:54:05 -07008
Taylor Blau2fb90402022-05-20 19:17:54 -04009typedef void report_recent_object_fn(const struct object *, struct packed_git *,
10 off_t, time_t);
11
Denton Liu55454422019-04-29 04:28:14 -040012int add_unseen_recent_objects_to_traversal(struct rev_info *revs,
Taylor Blau2fb90402022-05-20 19:17:54 -040013 timestamp_t timestamp,
14 report_recent_object_fn cb,
15 int ignore_in_core_kept_packs);
Denton Liu55454422019-04-29 04:28:14 -040016void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
Denton Liuad6dad02019-04-29 04:28:23 -040017 timestamp_t mark_recent, struct progress *);
Junio C Hamano94421472007-01-06 02:16:17 -080018
19#endif