Page MenuHomePhabricator

D9506.id.diff
No OneTemporary

D9506.id.diff

diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php
--- a/src/repository/api/ArcanistGitAPI.php
+++ b/src/repository/api/ArcanistGitAPI.php
@@ -1202,4 +1202,9 @@
$this->execxLocal('stash pop');
}
+ protected function didReloadCommitRange() {
+ // After an amend, the symbolic head may resolve to a different commit.
+ $this->resolvedHeadCommit = null;
+ }
+
}
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -1207,6 +1207,10 @@
return false;
}
+ if ($this->getArgument('head') !== null) {
+ return false;
+ }
+
// Run this last: with --raw or --raw-command, we won't have a repository
// API.
if ($this->isHistoryImmutable()) {

File Metadata

Mime Type
text/plain
Expires
Sun, May 12, 7:15 AM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288403
Default Alt Text
D9506.id.diff (861 B)

Event Timeline