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; } } }