Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1574261
DifferentialConflictsField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
935 B
Referenced Files
None
Subscribers
None
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 "%s" field which Git can inject into commit messages.'
,
'Conflicts'
);
}
public
function
canDisableField
()
{
return
false
;
}
public
function
shouldAppearInCommitMessage
()
{
return
true
;
}
public
function
shouldAllowEditInCommitMessage
()
{
return
false
;
}
public
function
renderCommitMessageValue
(
array
$handles
)
{
return
null
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 15, 9:53 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
356064
Default Alt Text
DifferentialConflictsField.php (935 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment