Is there some cleaner way to make Git just ignore some of my changes and never commit them? .gitattributes:
config_to_be_deviated.xml filter=qqq
.git/config:
[filter "qqq"] clean = "perl -ne 'print unless /git_please_dont_look_here/'" smudge = (Q=$(mktemp) && cat > $Q && patch -s $Q < /tmp/pp && cat $Q && rm $Q)
The patch /tmp/pp adds my changes with "git_please_dont_look_here" in each line.
Git removes all such lines before getting the file into repository and readds my changes when checking out it; I can continue adding and committing useful changes to config_to_be_deviated.xml
, but changes in the patch will not be seen by Git.