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

Re: Tracking OpenOffice files/other compressed files with Git

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Sep 9, 2008, 11:22 UTC
Message-ID
<48C65C7E.3030305@viscovery.net>
In-Reply-To
<48C658DE.3070001@gmail.com>
Sergio Callegari schrieb:
Show 5 quoted lines
> But in any case it would be preferable to smudge on checkout since
> uncompressed OO files can be quite huge.
> Also to have uncompressed OO files in the worktree means that if you
> ever need to send one as an attachment to somebody you need to reopen
> and resave it before making the attachment, which is a bit uncomfortable!
True. Choose your poison.
Show 12 quoted lines
>> A file that you have just 'git add'ed must not show up as dirty even
>> if it
>> was processed by a "clean" filter. If it does, then this indicates a bug
>> in git, and not that a corresponding "smudge" filter is missing or
>> misbehaves. Yes, I have observed this with my own "clean" filter some
>> time
>> ago, but I have not yet tried hard enough to find a reproducible test
>> case.
>>
>>   
> But am I correct in saying that it will show dirty if you clean and then
> smudge in a non symmetric way?
No.

The "smudge" filter kicks in only if the file in the worktree must be replaced, for example, due to 'git checkout'. After the filter has completed, the stat information of the smudged version is stored in the index, and so the file does not appear as dirty. (Again, if you observe something else, then git must be fixed, IMO.)

-- Hannes
Previous: Sergio CallegariNext: Mike Hommey
Message 7 of 9 in “Tracking OpenOffice files/other compressed files with Git”
  1. Peter KreftingSep 9, 2008
  2. Johannes SixtSep 9, 2008
  3. SergioSep 9, 2008
  4. Michael J GruberSep 9, 2008
  5. Johannes SixtSep 9, 2008
  6. Sergio CallegariSep 9, 2008
  7. Johannes SixtSep 9, 2008
  8. Mike HommeySep 9, 2008
  9. Matthieu MoySep 9, 2008

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.