From a568f2ac97f4c7b73ee0cdf2007f553bb8c81c2c Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 10 Nov 2011 08:10:19 -0500
Subject: [PATCH] Refresh log on display. Adjusted spacing of status panel.

---
 src/com/gitblit/Constants.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java
index 2543ea1..3204a55 100644
--- a/src/com/gitblit/Constants.java
+++ b/src/com/gitblit/Constants.java
@@ -227,4 +227,25 @@
 			return name();
 		}
 	}
+
+	/**
+	 * Enumeration of the search types.
+	 */
+	public static enum SearchType {
+		AUTHOR, COMMITTER, COMMIT;
+	
+		public static SearchType forName(String name) {
+			for (SearchType type : values()) {
+				if (type.name().equalsIgnoreCase(name)) {
+					return type;
+				}
+			}
+			return COMMIT;
+		}
+	
+		@Override
+		public String toString() {
+			return name().toLowerCase();
+		}
+	}
 }

--
Gitblit v1.9.1