Support METHOD=git to check only files in the Git index or working tree