Changeset View
Changeset View
Standalone View
Standalone View
src/config/arc/ArcanistArcConfigurationEngineExtension.php
Show All 23 Lines | /* | ||||
'arc.feature.start.default' => array( | 'arc.feature.start.default' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'help' => pht( | 'help' => pht( | ||||
'The name of the default branch to create the new feature branch '. | 'The name of the default branch to create the new feature branch '. | ||||
'off of.'), | 'off of.'), | ||||
'example' => '"develop"', | 'example' => '"develop"', | ||||
), | ), | ||||
'arc.land.onto.default' => array( | |||||
'type' => 'string', | |||||
'help' => pht( | |||||
'The name of the default branch to land changes onto when '. | |||||
'`%s` is run.', | |||||
'arc land'), | |||||
'example' => '"develop"', | |||||
), | |||||
'arc.autostash' => array( | |||||
'type' => 'bool', | |||||
'help' => pht( | |||||
'Whether %s should permit the automatic stashing of changes in the '. | |||||
'working directory when requiring a clean working copy. This option '. | |||||
'should only be used when users understand how to restore their '. | |||||
'working directory from the local stash if an Arcanist operation '. | |||||
'causes an unrecoverable error.', | |||||
'arc'), | |||||
'default' => false, | |||||
'example' => 'false', | |||||
), | |||||
'history.immutable' => array( | |||||
'type' => 'bool', | |||||
'legacy' => 'immutable_history', | |||||
'help' => pht( | |||||
'If true, %s will never change repository history (e.g., through '. | |||||
'amending or rebasing). Defaults to true in Mercurial and false in '. | |||||
'Git. This setting has no effect in Subversion.', | |||||
'arc'), | |||||
'example' => 'false', | |||||
), | |||||
'editor' => array( | 'editor' => array( | ||||
'type' => 'string', | 'type' => 'string', | ||||
'help' => pht( | 'help' => pht( | ||||
'Command to use to invoke an interactive editor, like `%s` or `%s`. '. | 'Command to use to invoke an interactive editor, like `%s` or `%s`. '. | ||||
'This setting overrides the %s environmental variable.', | 'This setting overrides the %s environmental variable.', | ||||
'nano', | 'nano', | ||||
'vim', | 'vim', | ||||
'EDITOR'), | 'EDITOR'), | ||||
Show All 34 Lines | return array( | ||||
->setAliases( | ->setAliases( | ||||
array( | array( | ||||
'repository.callsign', | 'repository.callsign', | ||||
)) | )) | ||||
->setSummary(pht('Repository for the current working copy.')) | ->setSummary(pht('Repository for the current working copy.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Associate the working copy with a specific Phabricator '. | 'Associate the working copy with a specific Phabricator '. | ||||
'repository. Normally, `arc` can figure this association out on '. | 'repository. Normally, Arcanist can figure this association '. | ||||
'its own, but if your setup is unusual you can use this option '. | 'out on its own, but if your setup is unusual you can use '. | ||||
'to tell it what the desired value is.')) | 'this option to tell it what the desired value is.')) | ||||
->setExamples( | ->setExamples( | ||||
array( | array( | ||||
'libexample', | 'libexample', | ||||
'XYZ', | 'XYZ', | ||||
'R123', | 'R123', | ||||
'123', | '123', | ||||
)), | )), | ||||
id(new ArcanistStringConfigOption()) | id(new ArcanistStringConfigOption()) | ||||
Show All 15 Lines | return array( | ||||
id(new ArcanistAliasesConfigOption()) | id(new ArcanistAliasesConfigOption()) | ||||
->setKey(self::KEY_ALIASES) | ->setKey(self::KEY_ALIASES) | ||||
->setDefaultValue(array()) | ->setDefaultValue(array()) | ||||
->setSummary(pht('List of command aliases.')) | ->setSummary(pht('List of command aliases.')) | ||||
->setHelp( | ->setHelp( | ||||
pht( | pht( | ||||
'Configured command aliases. Use the "alias" workflow to define '. | 'Configured command aliases. Use the "alias" workflow to define '. | ||||
'aliases.')), | 'aliases.')), | ||||
id(new ArcanistStringListConfigOption()) | |||||
->setKey('arc.land.onto') | |||||
->setDefaultValue(array()) | |||||
->setSummary(pht('Default list of "onto" refs for "arc land".')) | |||||
->setHelp( | |||||
pht( | |||||
'Specifies the default behavior when "arc land" is run with '. | |||||
'no "--onto" flag.')) | |||||
->setExamples( | |||||
array( | |||||
'["master"]', | |||||
)), | |||||
id(new ArcanistStringConfigOption()) | |||||
->setKey('arc.land.onto-remote') | |||||
->setSummary(pht('Default list of "onto" remote for "arc land".')) | |||||
->setHelp( | |||||
pht( | |||||
'Specifies the default behavior when "arc land" is run with '. | |||||
'no "--onto-remote" flag.')) | |||||
->setExamples( | |||||
array( | |||||
'origin', | |||||
)), | |||||
id(new ArcanistBoolConfigOption()) | |||||
->setKey('history.immutable') | |||||
->setSummary( | |||||
pht( | |||||
'Configure use of history mutation operations like amends '. | |||||
'and rebases.')) | |||||
->setHelp( | |||||
pht( | |||||
'If this option is set to "true", Arcanist will treat the '. | |||||
'repository history as immutable and will never issue '. | |||||
'commands which rewrite repository history (like amends or '. | |||||
'rebases). This option defaults to "true" in Mercurial, '. | |||||
'"false" in Git, and has no effect in Subversion.')), | |||||
); | ); | ||||
} | } | ||||
} | } |