mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-07 12:28:28 +01:00
Modernize metamta.differential.patch-format
Summary: Change metamta.differential.patch-format over to an enum option now that they're implemented. Test Plan: Looked at settings page. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D16032
This commit is contained in:
parent
a34b769b4f
commit
3849a69995
1 changed files with 4 additions and 3 deletions
|
@ -261,13 +261,14 @@ final class PhabricatorDifferentialConfigOptions
|
||||||
"that many lines. For instance, a value of 100 means 'inline ".
|
"that many lines. For instance, a value of 100 means 'inline ".
|
||||||
"patches if they are no longer than 100 lines'. By default, ".
|
"patches if they are no longer than 100 lines'. By default, ".
|
||||||
"patches are not inlined.")),
|
"patches are not inlined.")),
|
||||||
// TODO: Implement 'enum'? Options are 'unified' or 'git'.
|
|
||||||
$this->newOption(
|
$this->newOption(
|
||||||
'metamta.differential.patch-format',
|
'metamta.differential.patch-format',
|
||||||
'string',
|
'enum',
|
||||||
'unified')
|
'unified')
|
||||||
->setDescription(
|
->setDescription(
|
||||||
pht("Format for inlined or attached patches: 'git' or 'unified'.")),
|
pht('Format for inlined or attached patches.'))
|
||||||
|
->setEnumOptions(
|
||||||
|
array('unified' => 'unified', 'git' => 'git')),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue