]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Examine only HEAD in amend workflow
authorvrana <jakubv@fb.com>
Fri, 1 Jun 2012 23:39:09 +0000 (16:39 -0700)
committervrana <jakubv@fb.com>
Sat, 2 Jun 2012 00:06:23 +0000 (17:06 -0700)
Summary: We don't support `git rebase -i` or other magic in `arc amend` so we can examine just HEAD which we always amend.

Test Plan: `arc amend` on a branch with two commits.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2643

src/workflow/ArcanistAmendWorkflow.php

index b779bac507c14c8b72b41e0c298d3a9b2efad261..db7e22207bdf614f3477eb6adf580b0b4dc2661e 100644 (file)
@@ -99,6 +99,8 @@ EOTEXT
       $revision_id = $this->normalizeRevisionID($this->getArgument('revision'));
     }
 
+    $repository_api->setRelativeCommit('HEAD^');
+
     $in_working_copy = $repository_api->loadWorkingCopyDifferentialRevisions(
       $this->getConduit(),
       array(