diff options
author | Crestez Dan Leonard <cdleonard@gmail.com> | 2013-11-21 17:19:03 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-11-22 15:30:51 -0800 |
commit | 109efbe4f24b1748f42af52ca6d528b2d7ffe048 (patch) | |
tree | 47f345cb0102b87002c99ec49867ad2985701f1a /git-p4.py | |
parent | becb4336cb05c5ec456babaeafefa2e24ee85773 (diff) | |
download | git-109efbe4f24b1748f42af52ca6d528b2d7ffe048.tar.gz |
git p4: Use git diff-tree instead of format-patch
The output of git format-patch can vary with user preferences. In
particular setting diff.noprefix will break the "git apply" that
is done as part of "git p4 submit".
Acked-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Crestez Dan Leonard <cdleonard@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-p4.py')
-rwxr-xr-x | git-p4.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1308,7 +1308,7 @@ class P4Submit(Command, P4UserMap): 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 -" |