[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/differential/customfield/ -> DifferentialGitSVNIDField.php (source)

   1  <?php
   2  
   3  /**
   4   * This field doesn't do anything, it just parses the "git-svn-id" field which
   5   * `git svn` inserts into commit messages so that we don't end up mangling
   6   * some other field.
   7   */
   8  final class DifferentialGitSVNIDField
   9    extends DifferentialCustomField {
  10  
  11    public function getFieldKey() {
  12      return 'differential:git-svn-id';
  13    }
  14  
  15    public function getFieldKeyForConduit() {
  16      return 'gitSVNID';
  17    }
  18  
  19    public function getFieldName() {
  20      return pht('git-svn-id');
  21    }
  22  
  23    public function getFieldDescription() {
  24      return pht(
  25        'Parses the "git-svn-id" field which Git/SVN can inject into commit '.
  26        'messages.');
  27    }
  28  
  29    public function canDisableField() {
  30      return false;
  31    }
  32  
  33    public function shouldAppearInCommitMessage() {
  34      return true;
  35    }
  36  
  37    public function shouldAllowEditInCommitMessage() {
  38      return false;
  39    }
  40  
  41    public function renderCommitMessageValue(array $handles) {
  42      return null;
  43    }
  44  
  45  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1