From: Pierre Habouzit <madcoder@debian.org>
To: David Watson <dwatson@mimvista.com>
Cc: git@vger.kernel.org
Subject: Re: Any way to ignore a change to a tracked file when committing/merging?
Date: Wed, 13 Jun 2007 18:33:12 +0200 [thread overview]
Message-ID: <20070613163312.GJ5311@artemis.intersec.eu> (raw)
In-Reply-To: <A30E217A-084E-4019-949F-5918EAA6368E@mimvista.com>
[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]
On Wed, Jun 13, 2007 at 11:47:33AM -0400, David Watson wrote:
> I've got a problem, or maybe annoyance is more the proper term, that I
> haven't seen solved by any SCM system (at least not to my knowledge).
> Basically, I may make some changes, e.g. to a Makefile or somesuch, that
> I want to ignore when looking at what's changed from the repository. The
> only problem is, the file I've modified is already under version control,
> so .gitignore doesn't do anything.
>
> Now, I can commit it, so it will stop bugging me, but then when I push
> out it will include that change, unless I back it out. This is a change
> that I don't want propagated anywhere else, because it's specific to my
> machine or development sandbox.
>
> Is there any way to do this? I'd really love to use git-commit -a in this
> situation, and I could hack up a script to undo my change, run git-commit
> -a, and reapply the change, but makes me a bit squirmy. If I could put
> something in a .git config file to say "commit 237ab should not be
> propagated under any circumstances", that would be fantastic.
please read the thread [ pull into dirty working tree ] that is just
about this, and like errr 2 threads before yours.
--
·O· Pierre Habouzit
··O madcoder@debian.org
OOO http://www.madism.org
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-06-13 16:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-13 15:47 Any way to ignore a change to a tracked file when committing/merging? David Watson
2007-06-13 16:33 ` Pierre Habouzit [this message]
2007-06-13 17:21 ` Nicolas Pitre
2007-06-13 17:41 ` David Watson
2007-06-13 17:54 ` Nicolas Pitre
2007-06-13 18:09 ` David Watson
2007-06-13 18:19 ` Nicolas Pitre
2007-06-13 18:30 ` Robin Rosenberg
2007-06-13 19:34 ` Andy Parkins
2007-06-13 19:57 ` Junio C Hamano
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=20070613163312.GJ5311@artemis.intersec.eu \
--to=madcoder@debian.org \
--cc=dwatson@mimvista.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).