* filter clean leaves uncommitted file
@ 2014-02-20 4:46 shawn wilson
0 siblings, 0 replies; only message in thread
From: shawn wilson @ 2014-02-20 4:46 UTC (permalink / raw)
To: Git List
So, I want a way of sharing parts of a gitconfig organizationally, so
I change and comment out some parts with a filter:
[filter "gitconfig-rmuser"]
clean = sed -e \"s/^\\( *email =\\).*/\\1 <email address>/\" -e
\"s/^\\( *name =\\).*/\\1 <real name>/\" -e \"s/^\\( *signingkey
=\\).*/\\1 <gpg key>/\"
And then:
$ cat .gitattributes
* filter=ident-line
gitconfig filter=gitconfig-rmuser
Which works. The only problem is that if I change it again after the
commit, I get:
$ git status
# HEAD detached at e872204
# Changes not staged for commit:
# modified: gitconfig
#
no changes added to commit
$ git diff gitconfig
$
So the repo remains dirty and I can't do anything with it.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-20 4:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-20 4:46 filter clean leaves uncommitted file shawn wilson
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).