commit-graph: implement "--append" option

Teach git-commit-graph to add all commits from the existing
commit-graph file to the file about to be written. This should be
used when adding new commits without performing garbage collection.

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-10 08:56:08 -04:00
committed by Junio C Hamano
parent 3d5df01b5e
commit 7547b95b4f
5 changed files with 45 additions and 5 deletions

View File

@ -40,6 +40,7 @@ void write_commit_graph(const char *obj_dir,
const char **pack_indexes,
int nr_packs,
const char **commit_hex,
int nr_commits);
int nr_commits,
int append);
#endif