summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/models
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-12-03 17:20:17 -0500
committerJames Moger <james.moger@gitblit.com>2012-12-03 17:20:17 -0500
commite5662e85681deb98e2ed65831ade3f066f29f154 (patch)
treee6d8c23bbaa3e3d7d71eb75a8fc09177e88c5bc4 /src/com/gitblit/models
parent1d9ac51db01b654f2c97d9fd3057b7b0ed716b91 (diff)
downloadgitblit-e5662e85681deb98e2ed65831ade3f066f29f154.tar.gz
gitblit-e5662e85681deb98e2ed65831ade3f066f29f154.zip
Support symlink display in tree and commit pages (issue-171)
Diffstat (limited to 'src/com/gitblit/models')
-rw-r--r--src/com/gitblit/models/PathModel.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/gitblit/models/PathModel.java b/src/com/gitblit/models/PathModel.java
index 8692359c..84571cbb 100644
--- a/src/com/gitblit/models/PathModel.java
+++ b/src/com/gitblit/models/PathModel.java
@@ -48,6 +48,10 @@ public class PathModel implements Serializable, Comparable<PathModel> {
this.commitId = commitId;
}
+ public boolean isSymlink() {
+ return FileMode.SYMLINK.equals(mode);
+ }
+
public boolean isSubmodule() {
return FileMode.GITLINK.equals(mode);
}