summaryrefslogtreecommitdiff
path: root/commit-graph.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-04-10 12:56:06 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-11 01:43:02 (GMT)
commit049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244 (patch)
treed0bfac6465a31845070c4c55d6916dd6997e94c8 /commit-graph.h
parent177722b344256b84f1c97b7363d3f19c04928039 (diff)
downloadgit-049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244.zip
git-049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244.tar.gz
git-049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244.tar.bz2
commit-graph: read only from specific pack-indexes
Teach git-commit-graph to inspect the objects only in a certain list of pack-indexes within the given pack directory. This allows updating the commit graph iteratively. 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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/commit-graph.h b/commit-graph.h
index 73b28be..f065f08 100644
--- a/commit-graph.h
+++ b/commit-graph.h
@@ -36,6 +36,8 @@ struct commit_graph {
struct commit_graph *load_commit_graph_one(const char *graph_file);
-void write_commit_graph(const char *obj_dir);
+void write_commit_graph(const char *obj_dir,
+ const char **pack_indexes,
+ int nr_packs);
#endif