Re: [PATCH v7 07/22] commit-graph: add 'verify' subcommand

2018-06-29 Thread Derrick Stolee
On 6/27/2018 5:59 PM, Jonathan Tan wrote: +int verify_commit_graph(struct repository *r, struct commit_graph *g) I haven't had the time to review this patch set, but I did rebase my object store refactoring [1] on this and wrote a test: static void test_verify_commit_graph(const char *gitd

Re: [PATCH v7 07/22] commit-graph: add 'verify' subcommand

2018-06-27 Thread Jonathan Tan
> +int verify_commit_graph(struct repository *r, struct commit_graph *g) I haven't had the time to review this patch set, but I did rebase my object store refactoring [1] on this and wrote a test: static void test_verify_commit_graph(const char *gitdir, const char *worktree) { st

[PATCH v7 07/22] commit-graph: add 'verify' subcommand

2018-06-27 Thread Derrick Stolee
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