Re: [PATCH v2 1/6] archive: optionally add "virtual" files
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 13, 2022, 06:25 UTC
- Message-ID
- <xmqqfson706p.fsf@gitster.g>
- In-Reply-To
- <b05f916c-4b04-4db6-d203-10be0a8eb615@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 8 quoted lines
>> The verifier has a tarball. In addition, the verifier knows the >> object name of the Git tree object the tarball was taken from, and >> somehow trusts that the object name is genuine. We can do either >> "untar + git-add . && git write-tree" or its equivalent to see how >> the contents hashes to the expected tree (or not). > ... > Right, but the tree hash does not directly allow to see which objects > are tracked or not.
Ah, of course---it was silly of me to overlook this obvious fact X-<. So we do need some extra "manifest" to declare what's untracked etc., if we allow --add-file etc. to munge the tree when creating a tarball out of it.