Compare takes a path to a git repository and returns errors between HEAD and HEAD~ for any incompatible Thrift changes between the two shas.
NewGitFS creates an implementation of FS to use git to discover Thrift changes and previous version of a Thrift file.