If you have some patches on a git branch: 111 Refactor Foo. 222 Refactor Foo and Bar. 333 Aw hell, let's delete Foo. And then run Tools/Scripts/webkit-patch -g 222 while HEAD is at 333, the style checker will die, complaining that file Foo was deleted. This leads me to believe it's looking at HEAD for some reason.