Right. But maybe we shouldn't be scanning for packfiles every
time we don't find a loose object. Especially if the caller is in
a context where we actually *expect* to not find said object like
half of the time... say in git-add/update-index. ;-)
Yes, we could definitely skip the re-lookup if we had a "don't really
care, I can recreate the object myself" flag (ie anybody who is going to
write that object)
Linus