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

Re: [PATCH] supply '-n' to gzip to produce identical tarballs

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 11, 2011, 19:24 UTC
Message-ID
<7vei58wq0a.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201104101555.09798.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 11 quoted lines
>> > Perhaps it would be more clear to use
>> > 
>> >   +		'compressor' => ['gzip', '--no-name']},
>
>> Definitely, if the argument is the same (or even present) on all systems.
>> On FreeBSD and GNU both '-n' and '--no-name' are do the job, but an audit
>> of other systems should be done to ensure they don't break.  I chose '-n'
>> as it seemed the more conservative choice.
>
> So you choose '-n' because it has more chance of being widely supported,
> isn't it?  Good enough for me.

Interesting. "gzip <COPYING" does get a consistent result because it can fstat to get the timestamp, but "cat COPYING | gzip" does change its output every time it is run. Good catch and a solution. Thanks, both.

So I should expect a pull request sometime after 1.7.5 final from you, with "an audit of other systems" done by others on the list noted in the final commit message?

Previous: Jakub NarebskiNext: Fraser Tweedale
Message 5 of 6 in “supply '-n' to gzip to produce identical tarballs”
  1. supply '-n' to gzip to produce identical tarballsFraser Tweedale, Apr 10, 2011
  2. Jakub NarebskiApr 10, 2011
  3. Fraser TweedaleApr 10, 2011
  4. Jakub NarebskiApr 10, 2011
  5. Junio C HamanoApr 11, 2011
  6. Fraser TweedaleApr 11, 2011

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.