ChangeScreen2: Do not display 'M' next to modified files
Most files are modified. Its the added/deleted/renamed/copied files that need to be highlighted as outside of the typical review flow. Avoid UI clutter by only displaying 'ADRCW' status codes, or any other codes the server returns in the REST API. Change-Id: I332152c3d6f8c6416649e3f7efe6a3a141f28536
This commit is contained in:
@@ -97,6 +97,10 @@ public final class Patch {
|
||||
return code;
|
||||
}
|
||||
|
||||
public boolean matches(String s) {
|
||||
return s != null && s.length() == 1 && s.charAt(0) == code;
|
||||
}
|
||||
|
||||
public static ChangeType forCode(final char c) {
|
||||
for (final ChangeType s : ChangeType.values()) {
|
||||
if (s.code == c) {
|
||||
|
||||
Reference in New Issue
Block a user