summaryrefslogtreecommitdiffstats
path: root/reachable.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:34:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:34:27 +0000
commit4dbdc42d9e7c3968ff7f690d00680419c9b8cb0f (patch)
tree47c1d492e9c956c1cd2b74dbd3b9d8b0db44dc4e /reachable.h
parentInitial commit. (diff)
downloadgit-4dbdc42d9e7c3968ff7f690d00680419c9b8cb0f.tar.xz
git-4dbdc42d9e7c3968ff7f690d00680419c9b8cb0f.zip
Adding upstream version 1:2.43.0.upstream/1%2.43.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'reachable.h')
-rw-r--r--reachable.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/reachable.h b/reachable.h
new file mode 100644
index 0000000..020a887
--- /dev/null
+++ b/reachable.h
@@ -0,0 +1,19 @@
+#ifndef REACHEABLE_H
+#define REACHEABLE_H
+
+struct progress;
+struct rev_info;
+struct object;
+struct packed_git;
+
+typedef void report_recent_object_fn(const struct object *, struct packed_git *,
+ off_t, time_t);
+
+int add_unseen_recent_objects_to_traversal(struct rev_info *revs,
+ timestamp_t timestamp,
+ report_recent_object_fn cb,
+ int ignore_in_core_kept_packs);
+void mark_reachable_objects(struct rev_info *revs, int mark_reflog,
+ timestamp_t mark_recent, struct progress *);
+
+#endif