avoid catObjectStream skipping over unavailable shas

Not needed as it's used for --all, but will be needed later.
This commit is contained in:
Joey Hess 2020-07-08 13:56:14 -04:00
parent de3d7d044d
commit d08c178f97
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 10 additions and 18 deletions

View file

@ -16,14 +16,4 @@ be as good as --all's was, but it could still be significant.
> to get file blob, through cat-file to get key, through cat-file to
> precache logs.
One odd edge case is, could there be a worktree file that refers to a key
with no location log? In that case, catObjectStream would skip it. This
doesn't usually happen. One case where it does happen is if the git-annex
branch is not pulled, but master is.
Perhaps make catObjectStream not skip them, but return an item
with no log file content. It's important things not be reordered when doing
that -- could a dummy item somehow be passed through cat-file to represent
these problem cases?
--[[Joey]]