From: Derrick Stolee Date: Wed, 27 Jun 2018 13:24:32 +0000 (-0400) Subject: commit-graph: add 'verify' subcommand X-Git-Tag: v2.19.0-rc0~110^2~16 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/283e68c72f49e6cfbae53cb5547d5b399ed25d1a?hp=283e68c72f49e6cfbae53cb5547d5b399ed25d1a commit-graph: add 'verify' subcommand If the commit-graph file becomes corrupt, we need a way to verify that its contents match the object database. In the manner of 'git fsck' we will implement a 'git commit-graph verify' subcommand to report all issues with the file. Add the 'verify' subcommand to the 'commit-graph' builtin and its documentation. The subcommand is currently a no-op except for loading the commit-graph into memory, which may trigger run-time errors that would be caught by normal use. Add a simple test that ensures the command returns a zero error code. If no commit-graph file exists, this is an acceptable state. Do not report any errors. Helped-by: Ramsay Jones Signed-off-by: Derrick Stolee Signed-off-by: Junio C Hamano ---