Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> However, it seems that git isn't so willing to tell you about gitignore
> patterns that cover too much, i.e. match files that are already in the
> repository.
It seems to me that git-ls-files is what you want here :
http://www.kernel.org/pub/software/scm/git/docs/git-ls-files.html
git ls-files -i --exclude-standard
Regards,
--
dim