]> git.ipfire.org Git - thirdparty/git.git/commit - commit-graph.h
commit-graph: verify chains with --shallow mode
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 18 Jun 2019 18:14:32 +0000 (11:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Jun 2019 03:46:26 +0000 (20:46 -0700)
commit3da4b609bb14b13672f64af908706462617f53cb
tree4930d74aff3855555c647f3b3c28ccde2331606c
parentc2bc6e6ab0ade70c475a73d06326e677e70840d2
commit-graph: verify chains with --shallow mode

If we wrote a commit-graph chain, we only modified the tip file in
the chain. It is valuable to verify what we wrote, but not waste
time checking files we did not write.

Add a '--shallow' option to the 'git commit-graph verify' subcommand
and check that it does not read the base graph in a two-file chain.

Making the verify subcommand read from a chain of commit-graphs takes
some rearranging of the builtin code.

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/t5324-split-commit-graph.sh