From f76fee63ed9cb3a30d3c0c092d860b1cb93a481b Mon Sep 17 00:00:00 2001
From: Gerard Smyth <gerard.smyth@gmail.com>
Date: Thu, 08 May 2014 13:09:30 -0400
Subject: [PATCH] Updated the SyndicationServlet to provide an additional option to return details of the tags in the repository instead of the commits. This uses a new 'ot' request parameter to indicate the object type of the content to return, which can be ither TAG or COMMIT. If this is not provided, then COMMIT is assumed to maintain backwards compatability. If tags are returned, then the paging parameters, 'l' and 'pg' are still supported, but searching options are currently ignored.

---
 src/main/java/com/gitblit/client/GitblitManagerLauncher.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/main/java/com/gitblit/client/GitblitManagerLauncher.java b/src/main/java/com/gitblit/client/GitblitManagerLauncher.java
index d0cc839..8a43c47 100644
--- a/src/main/java/com/gitblit/client/GitblitManagerLauncher.java
+++ b/src/main/java/com/gitblit/client/GitblitManagerLauncher.java
@@ -36,9 +36,9 @@
 
 /**
  * Downloads dependencies and launches Gitblit Manager.
- * 
+ *
  * @author James Moger
- * 
+ *
  */
 public class GitblitManagerLauncher {
 
@@ -51,10 +51,10 @@
 
 	public static void main(String[] args) {
 		final SplashScreen splash = SplashScreen.getSplashScreen();
-		
+
 		File libFolder = new File("ext");
 		List<File> jars = findJars(libFolder.getAbsoluteFile());
-		
+
 		// sort the jars by name and then reverse the order so the newer version
 		// of the library gets loaded in the event that this is an upgrade
 		Collections.sort(jars);
@@ -67,7 +67,7 @@
 
 			}
 		}
-		
+
 		updateSplash(splash, Translation.get("gb.starting") + " Gitblit Manager...");
 		GitblitManager.main(args);
 	}
@@ -78,12 +78,13 @@
 		}
 		try {
 			EventQueue.invokeAndWait(new Runnable() {
+				@Override
 				public void run() {
 					Graphics2D g = splash.createGraphics();
 					if (g != null) {
 						// Splash is 320x120
 						FontMetrics fm = g.getFontMetrics();
-						
+
 						// paint startup status
 						g.setColor(Color.darkGray);
 						int h = fm.getHeight() + fm.getMaxDescent();
@@ -96,7 +97,7 @@
 						g.setColor(Color.WHITE);
 						int xw = fm.stringWidth(string);
 						g.drawString(string, x + ((w - xw) / 2), y - 5);
-						
+
 						// paint version
 						String ver = "v" + Constants.getVersion();
 						int vw = g.getFontMetrics().stringWidth(ver);
@@ -110,7 +111,7 @@
 			t.printStackTrace();
 		}
 	}
-	
+
 	public static List<File> findJars(File folder) {
 		List<File> jars = new ArrayList<File>();
 		if (folder.exists()) {
@@ -135,7 +136,7 @@
 
 	/**
 	 * Adds a file to the classpath
-	 * 
+	 *
 	 * @param f
 	 *            the file to be added
 	 * @throws IOException

--
Gitblit v1.9.1