Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97892256
DifferentialConflictsField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jan 7, 06:34
Size
933 B
Mime Type
text/x-php
Expires
Thu, Jan 9, 06:34 (2 d)
Engine
blob
Format
Raw Data
Handle
23431602
Attached To
rPH Phabricator
DifferentialConflictsField.php
View Options
<?php
/**
* This field doesn't do anything, it just parses the "Conflicts:" field which
* `git` can insert after a merge, so we don't squish the field value into
* some other field.
*/
final
class
DifferentialConflictsField
extends
DifferentialCustomField
{
public
function
getFieldKey
()
{
return
'differential:conflicts'
;
}
public
function
getFieldKeyForConduit
()
{
return
'conflicts'
;
}
public
function
getFieldName
()
{
return
pht
(
'Conflicts'
);
}
public
function
getFieldDescription
()
{
return
pht
(
'Parses the "Conflicts" field which Git can inject into commit '
.
'messages.'
);
}
public
function
canDisableField
()
{
return
false
;
}
public
function
shouldAppearInCommitMessage
()
{
return
true
;
}
public
function
shouldAllowEditInCommitMessage
()
{
return
false
;
}
public
function
renderCommitMessageValue
(
array
$handles
)
{
return
null
;
}
}
Event Timeline
Log In to Comment