Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15332958
D21301.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
D21301.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
@@ -118,7 +118,6 @@
'many Arcanist/Phabricator features which depend on having access '.
'to the working copy.'),
'conflicts' => array(
- 'less-context' => null,
'apply-patches' => pht('%s disables lint.', '--raw'),
'never-apply-patches' => pht('%s disables lint.', '--raw'),
@@ -142,7 +141,6 @@
'working copy. This disables many Arcanist/Phabricator features '.
'which depend on having access to the working copy.'),
'conflicts' => array(
- 'less-context' => null,
'apply-patches' => pht('%s disables lint.', '--raw-command'),
'never-apply-patches' => pht('%s disables lint.', '--raw-command'),
),
@@ -202,14 +200,6 @@
'allow-untracked' => array(
'help' => pht('Skip checks for untracked files in the working copy.'),
),
- 'less-context' => array(
- 'help' => pht(
- "Normally, files are diffed with full context: the entire file is ".
- "sent to Differential so reviewers can 'show more' and see it. If ".
- "you are making changes to very large files with tens of thousands ".
- "of lines, this may not work well. With this flag, a diff will ".
- "be created that has only a few lines of context."),
- ),
'apply-patches' => array(
'help' => pht(
'Apply patches suggested by lint to the working copy without '.
@@ -597,9 +587,6 @@
}
$repository_api = $this->getRepositoryAPI();
- if ($this->getArgument('less-context')) {
- $repository_api->setDiffLinesOfContext(3);
- }
$repository_api->setBaseCommitArgumentRules(
$this->getArgument('base', ''));
@@ -925,11 +912,6 @@
"Generally, source changes should not be this large.",
$change->getCurrentPath(),
new PhutilNumber($size));
- if (!$this->getArgument('less-context')) {
- $byte_warning .= ' '.pht(
- "If this file is a huge text file, try using the '%s' flag.",
- '--less-context');
- }
if ($repository_api instanceof ArcanistSubversionAPI) {
throw new ArcanistUsageException(
$byte_warning.' '.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 10:40 PM (3 d, 7 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7384771
Default Alt Text
D21301.diff (2 KB)
Attached To
Mode
D21301: Remove the "--less-context" flag from "arc diff"
Attached
Detach File
Event Timeline
Log In to Comment