git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git 2.38.0: Change in `git archive` output

From
Jeff King <peff@peff.net>
Date
Oct 17, 2022, 17:03 UTC
Message-ID
<Y02K8bI1s74tEij4@coredump.intra.peff.net>
In-Reply-To
<Y0ynDbG8CxwAt4Fj@tapette.crustytoothpaste.net>
On Mon, Oct 17, 2022 at 12:51:25AM +0000, brian m. carlson wrote:
Show 16 quoted lines
> > but if I instead do "seq 10000", then the files differ. I didn't dig
> > into the actual binary to see the source of the change. It might be
> > something we can tweak (e.g., if it's how a header is represented, or if
> > we can change the zlib parameters to find the same compressions).
> 
> I will say that trying to make two compression implementations produce
> identical output is likely futile because it's almost always the case
> that there are multiple identical ways to encode the same data.  Most
> implementations are going to prefer improving size over consistency, so
> there's little incentive to copy the same algorithm across
> implementations. I believe even GNU gzip has changed its output in the
> past as better optimizations were implemented.
> 
> I mean, don't let me stop you from trying to tweak things to see if you
> can make it work, but in general I think it's likely that some
> divergence is going to occur between implementations no matter what.

Yeah, I definitely don't think it's something we ought to be promising, or do put a lot of work into. But if there's low-hanging fruit to reduce immediate pain in practice, it seems worth considering.

-Peff
Previous: brian m. carlsonNext: Konstantin Ryabitsev
Message 5 of 6 in “git 2.38.0: Change in `git archive` output”
  1. kpcyrdOct 16, 2022
  2. brian m. carlsonOct 16, 2022
  3. Jeff KingOct 17, 2022
  4. brian m. carlsonOct 17, 2022
  5. Jeff KingOct 17, 2022
  6. Konstantin RyabitsevOct 17, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.