Re: Any way to ignore a change to a tracked file when committing/merging?
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Jun 13, 2007, 19:34 UTC
- Message-ID
- <200706132034.29934.andyparkins@gmail.com>
- In-Reply-To
- <A30E217A-084E-4019-949F-5918EAA6368E@mimvista.com>
On Wednesday 2007, June 13, 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
So you want to tell git to track a file and then have it not track changes to that file? Sounds crazy to me. Don't put files in the repository that you don't want tracking.
What you want is an out-of-tree file for that sort of thing. Why can't you just do
#!/usr/bin/make -include Makefile.local
Rather than messing around with not tracking tracked files?
git does exactly that in it's own build process with a config.mak file, which lets you specify, say, an install directory that is obviously only valid for you.
Andy
-- Dr Andy Parkins, M Eng (hons), MIET andyparkins@gmail.com