Probably because sometimes you want to check libraries into your project. For custom jars, I'd immagine you'd want to specify their paths exactly, or something like (bin|build)/*.jar
Can't you exclude all jars by default and add whatever libs you do want to check in? I don't know too much about git, but that is how I would do it in Mercurial. (In Mercurial, if you specify an explicit filename, it overrides .hgignore.)
Comments
The one created by Leiningen is pretty good.
It's interesting that the Java one doesn't list *.jar.
Probably because sometimes you want to check libraries into your project. For custom jars, I'd immagine you'd want to specify their paths exactly, or something like (bin|build)/*.jar
My point is that the Clojure one mentioned in the comment I was replying to does include *.jar.
Can't you exclude all jars by default and add whatever libs you do want to check in? I don't know too much about git, but that is how I would do it in Mercurial. (In Mercurial, if you specify an explicit filename, it overrides .hgignore.)
You can, you just need to use ``git add -f`` otherwise you get an error.
it's more interesting it does not include build/ which in 99% of the cases is something you wan to ignore.