git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Feature Request: Ignore Tracked IDE files

From
Sean Allred <allred.sean@gmail.com>
Date
Mar 22, 2023, 09:10 UTC
Message-ID
<m0o7ol6ta7.fsf@epic96565.epic.com>
In-Reply-To
<94EFF553-E498-46D9-B14A-3500FEDEBB47@nearearth.aero>
Ward Hopeman <ward.hopeman@nearearth.aero> writes:
Show 14 quoted lines
>     Request: Create an Ignore section that allows for minimal IDE
>     inclusion without impacting IDE settings for local users.
>
>     Reason for the request: Most engineering teams share some IDE
> settings when working on code. More often than not, local IDE changes
> force engineers to resort to using "git update-index --skip-worktree
> <file>” to avoid the IDE settings files from showing up. It would be
> nice to be able to identify IDE files that you want in the repository
> but not necessarily track all changes as most of them are not desired
> when individuals make those changes for local setup. But teams like to
> track and have available generic shareable configurations like tabs to
> space and line length etc. By making it a user configurable section of
> ignore it allows for future IDEs to be listed without impacting the
> way it works for common IDEs today.

It sounds like you are rather after 'public' vs 'private' IDE settings, which would be a feature of the IDE -- not of Git -- and it seems a far simpler model. Public settings are checked-in, private settings are not, and private settings override public settings.

This is used by Visual Studio (IIRC) and possible in other tools (Emacs I know for sure, though I can't imagine VS Code doesn't have this concept by now). It's even the model used by Git itself for some things (.gitignore vs. .git/info/exclude vs. core.excludesfile).

Are these alternative approaches not an option?

-- Sean Allred

Previous: Ward HopemanNext: Ward Hopeman
Message 2 of 5 in “Feature Request: Ignore Tracked IDE files”
  1. Ward HopemanMar 21, 2023
  2. Sean AllredMar 22, 2023
  3. Ward HopemanMar 22, 2023
  4. Sean AllredMar 22, 2023
  5. Ward HopemanMar 22, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.