James Moger
2012-03-15 d896e62505a429ee27237b3302d7c04e7ff8e6df
src/com/gitblit/Constants.java
@@ -15,6 +15,7 @@
 */
package com.gitblit;
/**
 * Constant values used by Gitblit.
 * 
@@ -258,4 +259,20 @@
         return name().toLowerCase();
      }
   }
   /**
    * The types of objects that can be indexed and queried.
    */
   public static enum SearchObjectType {
      commit, blob, issue;
      static SearchObjectType fromName(String name) {
         for (SearchObjectType value : values()) {
            if (value.name().equals(name)) {
               return value;
            }
         }
         return null;
      }
   }
}