git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git filter clean not working when staging files
@ 2017-11-29 17:58 Rafał Treffler
  0 siblings, 0 replies; only message in thread
From: Rafał Treffler @ 2017-11-29 17:58 UTC (permalink / raw)
  To: git

Hello,

I've got a question or maybe bug about Git clean filter.
According to documentation[1] clean should be run when staging files.
When I'm staging file I see my script was run (I'm logging execution
into /tmp), but file content is unmodified.
My script is reading stdin and writing to stdout.
Nothing breaks in the script, from logs I see the source and modified
content are proper and I'm returning 0 return code.

Is this behavior intended? What should I do to modify the content?

Smudge works as intended.
But I've also noticed that git status runs clean filter but does not
modify contents.
Is that also intended?

Maybe I'm missing something?

If this is not going to work,
is there other way to modify file content on commit? (so the fixed
content goes to local repo)
Any other options ?

[1] https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes#filters_b

-- 
Thanks for help,
Rafal

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-29 17:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29 17:58 Git filter clean not working when staging files Rafał Treffler

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).