FabricMC / Enigma

This is a fork of cuchaz's Enigma, a deobfuscation/remapping tool for Java software.
GNU Lesser General Public License v3.0
426 stars 112 forks source link

Add more entries to gitignore #512

Open NebelNidas opened 1 year ago

NebelNidas commented 1 year ago

Adds support for VS Code and Fleet, along with some Java debug files.

modmuss50 commented 1 year ago

I wonder if it would be worth moving it to a "git include" such as : https://github.com/FabricMC/fabric-loader/blob/master/.gitignore Otherwise we basically end up adding something for everyone.

I know some people dont really like these, but it seems to work quite well in my experience. Im happy to hear you ideas.

NebelNidas commented 1 year ago

Seems like a more reasonable approach, I'd be fine with it 👍

NebelNidas commented 1 year ago

After some fiddling around, it seems to be super annoying to set up though. There are a lot of edge cases one needs to consider, and the lack of a proper regex system doesn't help either

2xsaiko commented 1 year ago

IMO any personal IDE/build-related outputs (that isn't part of the repo such as Gradle) should go into your user gitignore anyway, ~/.config/git/ignore. As modmuss said, otherwise you'd be adding something for each IDE under the sun eventually, and especially you need to ignore your IDE files in each repo you're working on.

Exclude-by-default gitignore is also a nice solution, but personally I'd be very worried about accidentally missing new files in a commit because they're no longer listed as untracked in git status. Speaking from experience here (: But since most things are under src anyway, it's probably rare for that to happen.