Skip to content

Commit

Permalink
Merge branch 'cl/p4-use-diff-tree'
Browse files Browse the repository at this point in the history
* cl/p4-use-diff-tree:
  git p4: Use git diff-tree instead of format-patch
  • Loading branch information
Junio C Hamano committed Dec 12, 2013
2 parents 3497717 + 109efbe commit feb28ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-p4.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ def applyCommit(self, id):
else:
die("unknown modifier %s for %s" % (modifier, path))

diffcmd = "git format-patch -k --stdout \"%s^\"..\"%s\"" % (id, id)
diffcmd = "git diff-tree -p \"%s\"" % (id)
patchcmd = diffcmd + " | git apply "
tryPatchCmd = patchcmd + "--check -"
applyPatchCmd = patchcmd + "--check --apply -"
Expand Down

0 comments on commit feb28ad

Please sign in to comment.