summaryrefslogtreecommitdiff
path: root/t/t5003
diff options
context:
space:
mode:
authorLibravatar Thomas Rast <trast@inf.ethz.ch>2013-05-30 22:00:22 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-06-03 12:51:53 -0700
commitdbea72a8c05d12c7dfd6a35376e62b21d5a655b5 (patch)
tree92298d4eaefe742337c18158d8eebe4b8f4e588e /t/t5003
parenttrivial: Add missing period in documentation (diff)
downloadtgif-dbea72a8c05d12c7dfd6a35376e62b21d5a655b5.tar.xz
sha1_file: silence sha1_loose_object_info
sha1_object_info() returns -1 (OBJ_BAD) if it cannot find the object for some reason, which suggests that it wants the _caller_ to report this error. However, part of its work happens in sha1_loose_object_info, which _does_ report errors itself. This is doubly strange because: * packed_object_info(), which is the other half of the duo, does _not_ report this. * In the event that an object is packed and pruned while sha1_object_info_extended() goes looking for it, we would erroneously show the error -- even though the code of the latter function purports to handle this case gracefully. * A caller might invoke sha1_object_info() to find the type of an object even if that object is not known to exist. Silence this error. The others remain untouched as a corrupt object is a much more grave error than it merely being absent. Signed-off-by: Thomas Rast <trast@inf.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5003')
0 files changed, 0 insertions, 0 deletions