* 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)
I've got a question or maybe bug about Git clean filter.
According to documentation 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
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 ?
Thanks for help,
^ 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
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).