commit-graph: implement --set-latest
authorDerrick Stolee <stolee@gmail.com>
Mon, 19 Feb 2018 18:53:20 +0000 (13:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Feb 2018 20:30:06 +0000 (12:30 -0800)
commit0fd2d95ee68a8248c3df101e26127cd4707813ca
tree456a3a260ecf0a5c11900e1fa5f4151e45d85866
parentb534f9e961fa262065b6f573e7ff45c6a0f63d1f
commit-graph: implement --set-latest

It is possible to have multiple commit graph files in a directory, but
only one is important at a time.

Use a 'graph-latest' file to point to the important file. Teach
git-commit-graph to write 'graph-latest' when given the "--set-latest"
option. Using this 'graph-latest' file is more robust than relying on
directory scanning and modified times.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-commit-graph.txt
builtin/commit-graph.c
commit-graph.c
commit-graph.h
t/t5318-commit-graph.sh