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:
authorDerrick Stolee <dstolee@microsoft.com>2018-06-27 16:24:40 +0300
committerJunio C Hamano <gitster@pobox.com>2018-06-27 20:29:10 +0300
commit88968ebf86d9b4524b17f6684dd8c67f0c6df652 (patch)
treefc84a4c4e7f94e5358bc481031b81d847f50a3f6 /commit-graph.c
parent1373e547f7d38b9444fcaae16c1de698b719aa15 (diff)
commit-graph: verify commit date
Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/commit-graph.c b/commit-graph.c
index de656ebbaf..3ac28b5eb5 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -986,6 +986,12 @@ int verify_commit_graph(struct repository *r, struct commit_graph *g)
oid_to_hex(&cur_oid),
graph_commit->generation,
max_generation + 1);
+
+ if (graph_commit->date != odb_commit->date)
+ graph_report("commit date for commit %s in commit-graph is %"PRItime" != %"PRItime,
+ oid_to_hex(&cur_oid),
+ graph_commit->date,
+ odb_commit->date);
}
return verify_commit_graph_error;