]> khamidou — GitHub mirrors - arcanist.git/commit
Use git-cherry-pick for arc patch
authorEdward Speyer <edward@fb.com>
Tue, 16 Oct 2012 23:46:21 +0000 (16:46 -0700)
committerEdward Speyer <edward@fb.com>
Tue, 16 Oct 2012 23:46:21 +0000 (16:46 -0700)
commit2d269aefedce5a9a17cbab167f66eaa94a35d88a
tree81b44ffaebd21a638569237c27cc4c650d5548d8
parenta850f1c6ef07dbd432f97a4b32312ca6fc43ec2d
Use git-cherry-pick for arc patch

Summary:
This changes what --nobranch does, though not what it means.  In git, the patch
is applied to the git commit it is based off where it will commit cleanly, and
if you specify --nobranch then arc-patch will then switch back to your original
branch and try to cherry-pick the commit there.

If this fails, you end up with merge-conflict markers in the file which can be
handy.

Test Plan: https://secure.phabricator.com/P572

Reviewers: epriestley, btrahan

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3712
src/workflow/ArcanistPatchWorkflow.php