From 4011b6048cb5f31bdabb5daad94a67ead7869be7 Mon Sep 17 00:00:00 2001 From: Southparkfan <Southparkfan@users.noreply.github.com> Date: Thu, 26 Feb 2015 08:39:57 -0500 Subject: [PATCH] Fix spelling mistake --- 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