]> khamidou — GitHub mirrors - arcanist.git/commit
Make the rule for applying git diff less restrict
authorjungejason <jun.ge.jason@fb.com>
Fri, 6 May 2011 00:07:39 +0000 (17:07 -0700)
committerjungejason <jun.ge.jason@fb.com>
Fri, 6 May 2011 03:33:23 +0000 (20:33 -0700)
commit8f59aff31a612f9d11599378e7ad5e48b354225e
tree32bd137f504e117c95df7c577ead7c21b541442f
parent64ecf636807e44ff39b074d68f8ea9f1e3321d11
Make the rule for applying git diff less restrict

Summary:
the current command to apply a git diff is 'git apply --index',
which will fail the whole patch and does not touch the working tree when
some of the hunks do not apply. We want to allow the user to patch the
ones which apply.

Test Plan:
run 'arc apply' against a diff whcih partially applies and
verify that the hunks which apply are applied, and .rej files are
generated for the rest.

Reviewed By: simpkins
Reviewers: simpkins, epriestley
Commenters: ju
CC: aran, slawekbiel, simpkins, ju
Differential Revision: 235
src/workflow/patch/ArcanistPatchWorkflow.php