From: Sergio Callegari <sergio.callegari@gmail.com>
To: git@vger.kernel.org
Subject: Interaction between clean/smudge and git status
Date: Sun, 13 Apr 2008 23:25:14 +0000 (UTC) [thread overview]
Message-ID: <loom.20080413T231611-113@post.gmane.org> (raw)
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.
next reply other threads:[~2008-04-13 23:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-13 23:25 Sergio Callegari [this message]
2008-04-14 6:48 ` Interaction between clean/smudge and git status 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
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=loom.20080413T231611-113@post.gmane.org \
--to=sergio.callegari@gmail.com \
--cc=git@vger.kernel.org \
/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).