add the method for using git-diff to produce patch