summaryrefslogtreecommitdiffstats
path: root/commit-graph.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-06-27 15:24:45 +0200
committerJunio C Hamano <gitster@pobox.com>2018-06-27 19:29:10 +0200
commit59fb87701ff68eb114e54ce6834e91c4ae8f60a7 (patch)
tree2046a528befaed1a8896b7ca9e284321ec68b1eb /commit-graph.h
parentcommit-graph: use string-list API for input (diff)
downloadgit-59fb87701ff68eb114e54ce6834e91c4ae8f60a7.tar.xz
git-59fb87701ff68eb114e54ce6834e91c4ae8f60a7.zip
commit-graph: add '--reachable' option
When writing commit-graph files, it can be convenient to ask for all reachable commits (starting at the ref set) in the resulting file. This is particularly helpful when writing to stdin is complicated, such as a future integration with 'git gc'. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.h')
-rw-r--r--commit-graph.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit-graph.h b/commit-graph.h
index a79b854470..506cb45fb1 100644
--- a/commit-graph.h
+++ b/commit-graph.h
@@ -48,6 +48,7 @@ struct commit_graph {
struct commit_graph *load_commit_graph_one(const char *graph_file);
+void write_commit_graph_reachable(const char *obj_dir, int append);
void write_commit_graph(const char *obj_dir,
struct string_list *pack_indexes,
struct string_list *commit_hex,