• Ævar Arnfjörð Bjarmason's avatar
    commit-graph: improve & i18n error messages · 93b4405f
    Ævar Arnfjörð Bjarmason authored
    Change the error emitted when a commit-graph file is corrupt so that
    we actually mention the commit-graph, e.g. change errors like:
        error: improper chunk offset 0000000000385e0c
        error: commit-graph improper chunk offset 0000000000385e0c
    As discussed in the commits leading up to this one the commit-graph
    machinery is now used by common commands like "status". If the graph
    was corrupt we'd often emit some error that gave no indication what
    was wrong. Now some of them are still cryptic, but they'll at least
    mention "commit-graph" to give the user a hint as to where to look.
    While I'm at it mark some of the strings that hadn't been marked for
    translation. It's clear from the commit history and the code that this
    was merely forgotten at the time, and wasn't intentional.p5
    Signed-off-by: Ævar Arnfjörð Bjarmason's avatarÆvar Arnfjörð Bjarmason <avarab@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
commit-graph.c 34.3 KB