Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15387378
D18740.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18740.diff
View Options
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -113,7 +113,7 @@
'param' => 'commit',
'help' => pht('Read revision information from a specific commit.'),
'conflicts' => array(
- 'preview' => null,
+ 'only' => null,
'update' => null,
),
),
@@ -175,10 +175,10 @@
'%s can not be used with %s.',
'--create',
'--edit'),
- 'preview' => pht(
+ 'only' => pht(
'%s can not be used with %s.',
'--create',
- '--preview'),
+ '--only'),
'update' => pht(
'%s can not be used with %s.',
'--create',
@@ -201,14 +201,13 @@
'never-apply-patches' => pht('%s suppresses lint.', '--nolint'),
),
),
- 'preview' => array(
+ 'only' => array(
'help' => pht(
'Instead of creating or updating a revision, only create a diff, '.
- 'which you may later attach to a revision. This still runs lint '.
- 'unit tests.'),
+ 'which you may later attach to a revision.'),
'conflicts' => array(
- 'edit' => pht('%s does affect revisions.', '--preview'),
- 'message' => pht('%s does not update any revision.', '--preview'),
+ 'edit' => pht('%s does affect revisions.', '--only'),
+ 'message' => pht('%s does not update any revision.', '--only'),
),
),
'encoding' => array(
@@ -321,7 +320,7 @@
'conflicts' => array(
'use-commit-message' => true,
'update' => true,
- 'preview' => true,
+ 'only' => true,
'raw' => true,
'raw-command' => true,
'message-file' => true,
@@ -331,7 +330,7 @@
'param' => 'usernames',
'help' => pht('When creating a revision, add reviewers.'),
'conflicts' => array(
- 'preview' => true,
+ 'only' => true,
'update' => true,
),
),
@@ -339,7 +338,7 @@
'param' => 'usernames',
'help' => pht('When creating a revision, add CCs.'),
'conflicts' => array(
- 'preview' => true,
+ 'only' => true,
'update' => true,
),
),
@@ -737,7 +736,7 @@
return true;
}
- return $this->getArgument('preview');
+ return $this->getArgument('only');
}
private function generateAffectedPaths() {
@@ -1397,7 +1396,7 @@
* @task message
*/
private function buildCommitMessage() {
- if ($this->getArgument('preview')) {
+ if ($this->getArgument('only')) {
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 2:18 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383551
Default Alt Text
D18740.diff (2 KB)
Attached To
Mode
D18740: Rename "arc diff --preview" to "arc diff --only"
Attached
Detach File
Event Timeline
Log In to Comment