James Moger
2014-06-30 94146dd495aad8157c423bfd9a1ae47c8e26b32c
src/main/java/com/gitblit/Constants.java
@@ -70,6 +70,8 @@
   public static final String RAW_PATH = "/raw/";
   public static final String PT_PATH = "/pt";
   public static final String BRANCH_GRAPH_PATH = "/graph/";
   public static final String BORDER = "*****************************************************************";
@@ -122,6 +124,14 @@
   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 String getVersion() {
      String v = Constants.class.getPackage().getImplementationVersion();
      if (v == null) {
@@ -136,6 +146,17 @@
   public static String getBuildDate() {
      return getManifestValue("build-date", "PENDING");
   }
   public static String getASCIIArt() {
      StringBuilder sb = new StringBuilder();
      sb.append("  _____  _  _    _      _  _  _").append('\n');
      sb.append(" |  __ \\(_)| |  | |    | |(_)| |").append('\n');
      sb.append(" | |  \\/ _ | |_ | |__  | | _ | |_").append('\n');
      sb.append(" | | __ | || __|| '_ \\ | || || __|").append("  ").append("http://gitblit.com").append('\n');
      sb.append(" | |_\\ \\| || |_ | |_) || || || |_").append("   ").append("@gitblit").append('\n');
      sb.append("  \\____/|_| \\__||_.__/ |_||_| \\__|").append("  ").append(Constants.getVersion()).append('\n');
      return sb.toString();
   }
   private static String getManifestValue(String attrib, String defaultValue) {
@@ -405,11 +426,11 @@
   /**
    * Enumeration of the feed content object types.
    */
   public static enum FeedContentObjectType {
   public static enum FeedObjectType {
      COMMIT, TAG;
      public static FeedContentObjectType forName(String name) {
         for (FeedContentObjectType type : values()) {
      public static FeedObjectType forName(String name) {
         for (FeedObjectType type : values()) {
            if (type.name().equalsIgnoreCase(name)) {
               return type;
            }