git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Sixt <j.sixt@viscovery.net>
To: Sergio Callegari <sergio.callegari@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Tracking OpenOffice files/other compressed files with Git
Date: Tue, 09 Sep 2008 13:22:38 +0200	[thread overview]
Message-ID: <48C65C7E.3030305@viscovery.net> (raw)
In-Reply-To: <48C658DE.3070001@gmail.com>

Sergio Callegari schrieb:
> 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.

>> 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

  reply	other threads:[~2008-09-09 11:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09  6:19 Tracking OpenOffice files/other compressed files with Git Peter Krefting
2008-09-09  7:02 ` Johannes Sixt
2008-09-09  9:02   ` Sergio
2008-09-09 10:28     ` Michael J Gruber
2008-09-09 10:57     ` Johannes Sixt
2008-09-09 11:07       ` Sergio Callegari
2008-09-09 11:22         ` Johannes Sixt [this message]
2008-09-09  8:18 ` Mike Hommey
2008-09-09  8:34 ` Matthieu Moy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48C65C7E.3030305@viscovery.net \
    --to=j.sixt@viscovery.net \
    --cc=git@vger.kernel.org \
    --cc=sergio.callegari@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).