diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2018-06-27 09:24:45 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-27 10:29:10 -0700 |
commit | 59fb87701ff68eb114e54ce6834e91c4ae8f60a7 (patch) | |
tree | 2046a528befaed1a8896b7ca9e284321ec68b1eb /commit-graph.h | |
parent | d88b14b3fd691fc71c3cea5bc5bde9dd10b5e86c (diff) | |
download | git-59fb87701ff68eb114e54ce6834e91c4ae8f60a7.tar.gz |
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.h | 1 |
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, |