mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 12:00:55 +01:00
Add properties to differential.getdiff
Summary: Add 'addLines' and 'delLines' properties to differential.getdiff return dictionary. These properties are aggregated from the changesets. Test Plan: Issue a differential.getdiff query via conduit and verify that 'addLines' and 'removeLines' properties are included and accurate Reviewers: epriestley Reviewed By: epriestley CC: epriestley, aran, jonathanhester Differential Revision: 1209
This commit is contained in:
parent
93d5d29541
commit
1270b0b5bd
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,8 @@ class DifferentialDiff extends DifferentialDAO {
|
||||||
'type' => $changeset->getChangeType(),
|
'type' => $changeset->getChangeType(),
|
||||||
'fileType' => $changeset->getFileType(),
|
'fileType' => $changeset->getFileType(),
|
||||||
'commitHash' => null,
|
'commitHash' => null,
|
||||||
|
'addLines' => $changeset->getAddLines(),
|
||||||
|
'delLines' => $changeset->getDelLines(),
|
||||||
'hunks' => $hunks,
|
'hunks' => $hunks,
|
||||||
);
|
);
|
||||||
$dict['changes'][] = $change;
|
$dict['changes'][] = $change;
|
||||||
|
|
Loading…
Reference in a new issue