summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/models/PathModel.java
diff options
context:
space:
mode:
authorRafael Cavazin <rafaelcavazin@gmail.com>2012-12-06 14:25:01 -0200
committerRafael Cavazin <rafaelcavazin@gmail.com>2012-12-06 14:25:01 -0200
commitd4b95298902c8cea1411fc696ed80028b6091aa7 (patch)
tree1ee58f481203ef60c030a3d0119784c37a8b7b3f /src/com/gitblit/models/PathModel.java
parent6aea2fa8aee24114bc59b09bc3c5b68fcd948790 (diff)
parentdc9735acfc9dcea6b970d18a315cbf8a6997c4f9 (diff)
downloadgitblit-d4b95298902c8cea1411fc696ed80028b6091aa7.tar.gz
gitblit-d4b95298902c8cea1411fc696ed80028b6091aa7.zip
Update from upstream/master
Merge remote-tracking branch 'upstream/master' into translation_to_pt-br
Diffstat (limited to 'src/com/gitblit/models/PathModel.java')
-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);
}