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:
authorJeff King <peff@peff.net>2023-11-09 10:14:34 +0300
committerJunio C Hamano <gitster@pobox.com>2023-11-09 13:07:53 +0300
commit93d29247298e9ae3fbc6dd8e022a6260b568191a (patch)
treefe61f743c35be71754dcf039697a211e760c806d /commit-graph.c
parent92de4c5d56d084325997ca057701b65a9e79276a (diff)
commit-graph: clarify missing-chunk error messages
When a required commit-graph chunk cannot be loaded, we leave its entry in the struct NULL, and then later complain that it is missing. But that's just one reason we might not have loaded it, as we also do some data quality checks. Let's switch these messages to say "missing or corrupted", which is exactly what the midx code says for the same cases. Likewise, we'll use the same phrasing and capitalization as those for consistency. And while we're here, we can mark them for translation (just like the midx ones). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
-rw-r--r--commit-graph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/commit-graph.c b/commit-graph.c
index 87e594c42e..85450a93de 100644
--- a/commit-graph.c
+++ b/commit-graph.c
@@ -292,15 +292,15 @@ static int verify_commit_graph_lite(struct commit_graph *g)
* itself.
*/
if (!g->chunk_oid_fanout) {
- error("commit-graph is missing the OID Fanout chunk");
+ error(_("commit-graph required OID fanout chunk missing or corrupted"));
return 1;
}
if (!g->chunk_oid_lookup) {
- error("commit-graph is missing the OID Lookup chunk");
+ error(_("commit-graph required OID lookup chunk missing or corrupted"));
return 1;
}
if (!g->chunk_commit_data) {
- error("commit-graph is missing the Commit Data chunk");
+ error(_("commit-graph required commit data chunk missing or corrupted"));
return 1;
}