ChangeScreen2: Show file change type in file list
For each changed file in the patch set file list, show the change type (modified, added, deleted or renamed). Bug: Issue 2111 Change-Id: I97834f6b2e440076123533a27795e7a8a33eb7e8
This commit is contained in:
committed by
David Pursehouse
parent
f5a4639757
commit
e6e28e0f11
@@ -56,8 +56,7 @@ public class FileInfoJson {
|
||||
Map<String, FileInfo> files = Maps.newTreeMap();
|
||||
for (PatchListEntry e : list.getPatches()) {
|
||||
FileInfoJson.FileInfo d = new FileInfoJson.FileInfo();
|
||||
d.status = e.getChangeType() != Patch.ChangeType.MODIFIED
|
||||
? e.getChangeType().getCode() : null;
|
||||
d.status = e.getChangeType().getCode();
|
||||
d.oldPath = e.getOldName();
|
||||
if (e.getPatchType() == Patch.PatchType.BINARY) {
|
||||
d.binary = true;
|
||||
|
||||
Reference in New Issue
Block a user