From: Ward Hopeman Date: Wed, 22 Mar 2023 14:21:19 GMT Subject: Re: Feature Request: Ignore Tracked IDE files Message-ID: <5C64C207-8CE4-4D42-A001-E473D827E99A@nearearth.aero> In-Reply-To: Thanks for the info Sean. Best regards, Ward > > On Mar 22, 2023, at 9:55 AM, Sean Allred wrote: > > > Ward Hopeman writes: >> [...] but I agree there appears to be an alternative available. I will >> pursue those configurations with the team. > > Best of luck! Managing settings across a team is always an 'interesting' > experience :-) > >> I am curious if you think there is a class of files, under the >> paradigm I outlined; that need to be tracked initially but then >> ignored for regular workflows? Just curious at this point if this was >> discussed / considered previously. > > It comes up every now and again, but in lieu of specific examples, it > always 'seems' to be the wrong approach. The Notes section of > git-update-index(1) talks about this a bit: > >> Users often try to use the assume-unchanged and skip-worktree bits to >> tell Git to ignore changes to files that are tracked. This does not >> work as expected, since Git may still check working tree files against >> the index when performing certain operations. In general, Git does not >> provide a way to ignore changes to tracked files, so alternate >> solutions are recommended. >> >> For example, if the file you want to change is some sort of config >> file, the repository can include a sample config file that can then be >> copied into the ignored name and modified. The repository can even >> include a script to treat the sample file as a template, modifying and >> copying it automatically. > > -- > Sean Allred