git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Interaction between clean/smudge and git status
@ 2008-04-13 23:25 Sergio Callegari
  2008-04-14  6:48 ` Johannes Sixt
  0 siblings, 1 reply; 6+ messages in thread
From: Sergio Callegari @ 2008-04-13 23:25 UTC (permalink / raw)
  To: git

Hi,

I have tried for the first time the .gitattributes filter option, setting a
clean and a smudge filter for a certain type of files.

What makes me wonder is that using filters, after a clean checkout git status
says that everything is changed.

My filter is a very short script that operates on zip files.
The clean command re-zips them so that the content is merely stored.
The smudge one re-zips them so that the content is deflated again.

This kind of filter helps very much the git repacking when zip files or
openoffice files are around.

But unfortunately, with it git shows everything as changed, which is not that
nice.

Is this the expected behaviour of the smudge filter?
Unfortunately I have been able to find very little documentation on it (only a
bit in the gitattributes man page), so maybe I am missing something.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-04-14  8:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-13 23:25 Interaction between clean/smudge and git status Sergio Callegari
2008-04-14  6:48 ` Johannes Sixt
2008-04-14  7:04   ` Junio C Hamano
2008-04-14  7:21     ` Johannes Sixt
2008-04-14  7:38     ` Sergio Callegari
2008-04-14  8:18       ` Sergio Callegari

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