Simplify git diff functions