mirror of
https://github.com/git/git.git
synced 2024-11-14 21:23:03 +01:00
abcb86553d
A recent commit taught git-prune to keep non-recent objects that are reachable from recent ones. However, pack-objects, when loosening unreachable objects, tries to optimize out the write in the case that the object will be immediately pruned. It now gets this wrong, since its rule does not reflect the new prune code (and this can be seen by running t6501 with a strategically placed repack). Let's teach pack-objects similar logic. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
10 lines
304 B
C
10 lines
304 B
C
#ifndef REACHEABLE_H
|
|
#define REACHEABLE_H
|
|
|
|
struct progress;
|
|
extern int add_unseen_recent_objects_to_traversal(struct rev_info *revs,
|
|
unsigned long timestamp);
|
|
extern void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
|
|
unsigned long mark_recent, struct progress *);
|
|
|
|
#endif
|