From 6e990e83ba918805cdd5831451f6120bff3f5897 Mon Sep 17 00:00:00 2001 From: larsmaes <lars.maes@gmail.com> Date: Thu, 06 Nov 2014 11:17:40 -0500 Subject: [PATCH] Update GitBlitWebApp_nl.properties --- src/main/java/com/gitblit/Constants.java | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index c8ce83c..fa8af25 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -122,6 +122,16 @@ public static final String R_TICKETS_PATCHSETS = "refs/tickets/"; + public static final String R_MASTER = "refs/heads/master"; + + public static final String MASTER = "master"; + + public static final String R_DEVELOP = "refs/heads/develop"; + + public static final String DEVELOP = "develop"; + + public static final String AUTHENTICATION_TYPE = "authentication-type"; + public static String getVersion() { String v = Constants.class.getPackage().getImplementationVersion(); if (v == null) { @@ -403,6 +413,27 @@ } /** + * Enumeration of the feed content object types. + */ + public static enum FeedObjectType { + COMMIT, TAG; + + public static FeedObjectType forName(String name) { + for (FeedObjectType type : values()) { + if (type.name().equalsIgnoreCase(name)) { + return type; + } + } + return COMMIT; + } + + @Override + public String toString() { + return name().toLowerCase(); + } + } + + /** * The types of objects that can be indexed and queried. */ public static enum SearchObjectType { -- Gitblit v1.9.1