Most hg commands allow you to pass a -Xfilename argument to exclude a file that doesn't belong on your ignore list. Is there a way to do this with git?
I've got a script that's checking if there are any changes to the working copy, using git status, but I'd like it to exclude changes to itself.
 
     
    