mirror of
https://github.com/frej/fast-export.git
synced 2026-03-03 16:50:42 +01:00
This should make --apply-as-patch work with deletions (fingers crossed :)
This commit is contained in:
@@ -197,7 +197,7 @@ class P4Sync(Command):
|
||||
die("unknown modifier %s for %s" % (modifier, path))
|
||||
|
||||
if self.applyAsPatch:
|
||||
system("git-diff-tree -p \"%s^\" \"%s\" | patch -p1" % (id, id))
|
||||
system("git-diff-tree -p --diff-filter=ACMRTUXB \"%s^\" \"%s\" | patch -p1" % (id, id))
|
||||
else:
|
||||
system("git-diff-files --name-only -z | git-update-index --remove -z --stdin")
|
||||
system("git cherry-pick --no-commit \"%s\"" % id)
|
||||
|
||||
Reference in New Issue
Block a user