{"thread":{"id":"35918","subject":"filter clean leaves uncommitted file","startedAt":"2014-02-20T04:46:25Z","lastAt":"2014-02-20T04:46:25Z","messageCount":1,"participants":["shawn wilson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"235089","messageId":"CAH_OBieMx3tv3Ld74cChEvFsG3NNb-cPmBLDjsAK_-OLVkC+5w@mail.gmail.com","threadId":"35918","inReplyTo":null,"subject":"filter clean leaves uncommitted file","fromName":"shawn wilson","fromEmail":"ag4ve.us@gmail.com","sentAt":"2014-02-20T04:46:25Z","receivedAt":"2014-02-20T04:46:25Z","isPatch":false,"sender":{"key":"ag4ve.us@gmail.com","avatar":null},"body":"So, I want a way of sharing parts of a gitconfig organizationally, so\nI change and comment out some parts with a filter:\n\n[filter \"gitconfig-rmuser\"]\n  clean = sed -e \\\"s/^\\\\( *email =\\\\).*/\\\\1 <email address>/\\\" -e\n\\\"s/^\\\\( *name =\\\\).*/\\\\1 <real name>/\\\" -e \\\"s/^\\\\( *signingkey\n=\\\\).*/\\\\1 <gpg key>/\\\"\n\nAnd then:\n$ cat .gitattributes\n* filter=ident-line\ngitconfig filter=gitconfig-rmuser\n\nWhich works. The only problem is that if I change it again after the\ncommit, I get:\n$ git status\n# HEAD detached at e872204\n# Changes not staged for commit:\n#       modified:   gitconfig\n#\nno changes added to commit\n$ git diff gitconfig\n$\n\nSo the repo remains dirty and I can't do anything with it.\n"}]}