add git diff and patch