Junio C Hamano [off-list ref] writes:
We probably could change git-ls-files to use the standard set
when no excludes are specified from the command line, or
something like that, but this will be a change in semantics that
would affect the scripts in a subtle way. I am somewhat
reluctant to make such a change.
+1 for your introduction of setup_standard_excludes().
And woh, I was writting a mail to say that adding a --exclude-standard
would be cool, but it has been implemented even before I said it would
be cool.
Nothing to add, except "Thanks Junio, Thanks Jeff!" :-).
At last, I'll be able to write
$ git ls-files -o --exclude-standard >> .gitignore
$ $EDITOR .gitignore
--
Matthieu