From 9bc17d16ea48a7978b198126d346828b1d24fe4e Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 18 Apr 2011 22:29:20 -0400 Subject: Color-coded change type indicator with tooltip for changed paths. Also fixed /dev/null reference due to deletion change. --- src/com/gitblit/wicket/models/PathModel.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/com/gitblit/wicket/models/PathModel.java') 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 { @@ -50,4 +52,16 @@ public class PathModel implements Serializable, Comparable { } 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; + } + } } -- cgit v1.2.3