aboutsummaryrefslogtreecommitdiffstats
path: root/t/t6102-rev-list-unexpected-objects.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-11-17 17:37:58 -0500
committerTaylor Blau <me@ttaylorr.com>2022-11-18 13:59:31 -0500
commit04fb96219abc0cbe46ba084997dc9066de3ac889 (patch)
treef44b90e3c351931cf5991f05ca335b1a1a66521a /t/t6102-rev-list-unexpected-objects.sh
parentThe twelfth batch (diff)
downloadgit-04fb96219abc0cbe46ba084997dc9066de3ac889.tar.gz
git-04fb96219abc0cbe46ba084997dc9066de3ac889.zip
parse_object(): drop extra "has" check before checking object type
When parsing an object of unknown type, we check to see if it's a blob, so we can use our streaming code path. This uses oid_object_info() to check the type, but before doing so we call repo_has_object_file(). This latter is pointless, as oid_object_info() will already fail if the object is missing. Checking it ahead of time just complicates the code and is a waste of resources (albeit small). Let's drop the redundant check. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 't/t6102-rev-list-unexpected-objects.sh')
0 files changed, 0 insertions, 0 deletions