summaryrefslogtreecommitdiff
path: root/t/t4032-diff-inter-hunk-context.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2010-06-10 12:47:01 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-07-14 15:35:12 -0700
commite8b15e6156fc361d3cb0e093747dab840d58fc7e (patch)
treeabe35e3b729a5a7046ad481635be467f528f0b90 /t/t4032-diff-inter-hunk-context.sh
parentGit 1.7.2-rc3 (diff)
downloadtgif-e8b15e6156fc361d3cb0e093747dab840d58fc7e.tar.xz
sha1_file: Show the the type and path to corrupt objects
Change the error message that's displayed when we encounter corrupt objects to be more specific. We now print the type (loose or packed) of corrupted objects, along with the full path to the file in question. Before: $ git cat-file blob 909ef997367880aaf2133bafa1f1a71aa28e09df fatal: object 909ef997367880aaf2133bafa1f1a71aa28e09df is corrupted After: $ git cat-file blob 909ef997367880aaf2133bafa1f1a71aa28e09df fatal: loose object 909ef997367880aaf2133bafa1f1a71aa28e09df (stored in .git/objects/90/9ef997367880aaf2133bafa1f1a71aa28e09df) is corrupted Knowing the path helps to quickly analyze what's wrong: $ file .git/objects/90/9ef997367880aaf2133bafa1f1a71aa28e09df .git/objects/90/9ef997367880aaf2133bafa1f1a71aa28e09df: empty Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4032-diff-inter-hunk-context.sh')
0 files changed, 0 insertions, 0 deletions