summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/models/PathModel.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/gitblit/wicket/models/PathModel.java')
-rw-r--r--src/com/gitblit/wicket/models/PathModel.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/models/PathModel.java b/src/com/gitblit/wicket/models/PathModel.java
index e2e463f9..2895d568 100644
--- a/src/com/gitblit/wicket/models/PathModel.java
+++ b/src/com/gitblit/wicket/models/PathModel.java
@@ -2,6 +2,8 @@ package com.gitblit.wicket.models;
import java.io.Serializable;
+import org.eclipse.jgit.diff.DiffEntry.ChangeType;
+
import com.gitblit.utils.JGitUtils;
public class PathModel implements Serializable, Comparable<PathModel> {
@@ -50,4 +52,16 @@ public class PathModel implements Serializable, Comparable<PathModel> {
}
return 1;
}
+
+ public static class PathChangeModel extends PathModel {
+
+ private static final long serialVersionUID = 1L;
+
+ public final ChangeType changeType;
+
+ public PathChangeModel(String name, String path, long size, int mode, String commitId, ChangeType type) {
+ super(name, path, size, mode, commitId);
+ this.changeType = type;
+ }
+ }
}