make this work for git diffs