Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-07 05:32:57 +0300
committerJunio C Hamano <gitster@pobox.com>2019-10-07 05:32:57 +0300
commitcaf150ce7d60e4070292226ec208478b801b8d4b (patch)
tree4468512d9f8492843cc7b4a6091790e513acde9f /commit-graph.c
parent1d8b0dfa8af29213969402a4d9ce78e4d95c7718 (diff)
parent7371612255492f062ee905e6d88c6234c6d4752a (diff)
Merge branch 'gs/commit-graph-progress'
* gs/commit-graph-progress: commit-graph: add --[no-]progress to write and verify
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/commit-graph.c b/commit-graph.c
index 19cb1fecfa..c3ba79fe4e 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -1994,8 +1994,10 @@ int verify_commit_graph(struct repository *r, struct commit_graph *g, int flags)
if (verify_commit_graph_error & ~VERIFY_COMMIT_GRAPH_ERROR_HASH)
return verify_commit_graph_error;
- progress = start_progress(_("Verifying commits in commit graph"),
- g->num_commits);
+ if (flags & COMMIT_GRAPH_WRITE_PROGRESS)
+ progress = start_progress(_("Verifying commits in commit graph"),
+ g->num_commits);
+
for (i = 0; i < g->num_commits; i++) {
struct commit *graph_commit, *odb_commit;
struct commit_list *graph_parents, *odb_parents;