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>
This commit is contained in:
Derrick Stolee
2018-04-02 16:34:19 -04:00
committed by Junio C Hamano
parent 4ce58ee38d
commit 08fd81c9b6
3 changed files with 366 additions and 0 deletions

6
commit-graph.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef COMMIT_GRAPH_H
#define COMMIT_GRAPH_H
void write_commit_graph(const char *obj_dir);
#endif