aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.h
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-04-02 16:34:19 -0400
committerJunio C Hamano <gitster@pobox.com>2018-04-02 14:27:38 -0700
commit08fd81c9b6495a395a527985d18aa51c4ae66cdc (patch)
treefe90797b9eefe0b8cd39817d08ae0f327793f01d /commit-graph.h
parent4ce58ee38de3ab0955b94946bfc339f387227223 (diff)
downloadgit-08fd81c9b6495a395a527985d18aa51c4ae66cdc.tar.gz
commit-graph: implement write_commit_graph()
Teach Git to write a commit graph file by checking all packed objects to see if they are commits, then store the file in the given object directory. Helped-by: Jeff King <peff@peff.net> 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit-graph.h b/commit-graph.h
new file mode 100644
index 0000000000..16fea993ab
--- /dev/null
+++ b/commit-graph.h
@@ -0,0 +1,6 @@
+#ifndef COMMIT_GRAPH_H
+#define COMMIT_GRAPH_H
+
+void write_commit_graph(const char *obj_dir);
+
+#endif