From e92c6d230b3a350749fdb9fa2150bb1773260b8c Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Sun, 28 Oct 2012 13:27:26 -0400 Subject: [PATCH] Experimental JGit-based GC Executor --- src/com/gitblit/Constants.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/com/gitblit/Constants.java b/src/com/gitblit/Constants.java index 33cf287..f74317e 100644 --- a/src/com/gitblit/Constants.java +++ b/src/com/gitblit/Constants.java @@ -86,6 +86,8 @@ public static final String CONFIG_CUSTOM_FIELDS = "customFields"; + public static final String ISO8601 = "yyyy-MM-dd'T'HH:mm:ssZ"; + public static String getGitBlitVersion() { return NAME + " v" + VERSION; } @@ -384,6 +386,14 @@ REPOSITORY, USER, TEAM; } + public static enum GCStatus { + READY, COLLECTING; + + public boolean exceeds(GCStatus s) { + return ordinal() > s.ordinal(); + } + } + @Documented @Retention(RetentionPolicy.RUNTIME) public @interface Unused { -- Gitblit v1.9.1