Check which git ignore is coming into play

From http://git-scm.com/docs/git-check-ignore.html