From 21acd2180ebf4e479d99fbee1d3e8b9cbb07222b Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 1 Jun 2012 16:39:09 -0700 Subject: [PATCH] Examine only HEAD in amend workflow 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workflow/ArcanistAmendWorkflow.php b/src/workflow/ArcanistAmendWorkflow.php index b779bac5..db7e2220 100644 --- a/src/workflow/ArcanistAmendWorkflow.php +++ b/src/workflow/ArcanistAmendWorkflow.php @@ -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(