Re: [PATCH 9/9] git archive docs: document output non-stability
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Feb 4, 2023, 17:46 UTC
- Message-ID
- <Y96Zbttj+VzsSz+w@tapette.crustytoothpaste.net>
- In-Reply-To
- <xmqq1qn8vxej.fsf@gitster.g>
On 2023-02-02 at 16:34:44, Junio C Hamano wrote:
Show 5 quoted lines
> There shouldn't be cross platform differences to break bit-for-bit > stability at least for "tar" format, as we do not rely on any > external library. Can we say the same for "zip"? I thought we > throw the blob at git_deflate_*() so the exact bitstream is up to > the libz implementation?
That's also true. There, we can't use gzip, so we do whatever libz does. For Zip, I believe we embed a local timestamp, so the output is also dependent on the time zone. I don't know enough about the Zip format to say if there are any other things that may vary.
-- brian m. carlson (he/him or they/them) Toronto, Ontario, CA