From: shawn wilson <ag4ve.us@gmail.com>
To: Git List <git@vger.kernel.org>
Subject: filter clean leaves uncommitted file
Date: Wed, 19 Feb 2014 23:46:25 -0500 [thread overview]
Message-ID: <CAH_OBieMx3tv3Ld74cChEvFsG3NNb-cPmBLDjsAK_-OLVkC+5w@mail.gmail.com> (raw)
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.
reply other threads:[~2014-02-20 4:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH_OBieMx3tv3Ld74cChEvFsG3NNb-cPmBLDjsAK_-OLVkC+5w@mail.gmail.com \
--to=ag4ve.us@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).