summaryrefslogtreecommitdiff
path: root/commit-graph.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-06-27 13:24:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-27 17:29:10 (GMT)
commit59fb87701ff68eb114e54ce6834e91c4ae8f60a7 (patch)
tree2046a528befaed1a8896b7ca9e284321ec68b1eb /commit-graph.h
parentd88b14b3fd691fc71c3cea5bc5bde9dd10b5e86c (diff)
downloadgit-59fb87701ff68eb114e54ce6834e91c4ae8f60a7.zip
git-59fb87701ff68eb114e54ce6834e91c4ae8f60a7.tar.gz
git-59fb87701ff68eb114e54ce6834e91c4ae8f60a7.tar.bz2
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 a79b854..506cb45 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,