3 ms·
> It doesn't make sense to put editor-specific stuff in the project's .gitignore because the editor or IDE a contributor chooses to use to develop the project i
by nullindividual 2y ago
> It doesn't make sense to put editor-specific stuff in the project's .gitignore because the editor or IDE a contributor chooses to use to develop the project is orthogonal to the code in the project.
Why not? What's the harm?
There seems to be zero significant downsides to include editor or operating system-specific patterns in the project .gitignore. A long .gitignore doesn't cause performance issues.
To wit, you'll ultimately have someone without a global .gitignore that will lead to PR cleanup (or worse, direct commits).
The project level .gitignore prevents mistakes by all committers. This is superior to trusting a developer correctly set up their own .gitignore.
I think this is getting to the level of "optimization" because it feels good rather than doing any true good.