commit-graph: clean up chains after flattened write
commitba41112a6331e8b454cac6cfd3ee67ae93957a2c
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 18 Jun 2019 18:14:33 +0000 (18 11:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2019 03:46:26 +0000 (19 20:46 -0700)
tree10fc409a0ff2b2cb88ee4c8809877e663175b3dd
parent3da4b609bb14b13672f64af908706462617f53cb
commit-graph: clean up chains after flattened write

If we write a commit-graph file without the split option, then
we write to $OBJDIR/info/commit-graph and start to ignore
the chains in $OBJDIR/info/commit-graphs/.

Unlink the commit-graph-chain file and expire the graph-{hash}.graph
files in $OBJDIR/info/commit-graphs/ during every write.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
t/t5324-split-commit-graph.sh