Display the size of a patch (lines added/removed)
In a patch table we now display the number of new lines added or the number of lines deleted for each file, assuming it is not binary. Added files only show the total number of lines, while deleted files show nothing at all. A new row is added at the bottom of the table that shows the overall size of the delta. This can be useful if a project has rules about how big a patch can be before additional types of review are required (e.g. Eclipse based projects). Bug: issue 499 Change-Id: I961d8fac3f5d82a5d24f0a4d0b0a9ddf39182a50 Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -35,7 +35,7 @@ import java.io.Serializable;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public class PatchListKey implements Serializable {
|
||||
static final long serialVersionUID = 14L;
|
||||
static final long serialVersionUID = 15L;
|
||||
|
||||
private transient ObjectId oldId;
|
||||
private transient ObjectId newId;
|
||||
|
Reference in New Issue
Block a user