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/utils/FederationUtils.java |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/main/java/com/gitblit/utils/FederationUtils.java b/src/main/java/com/gitblit/utils/FederationUtils.java
index 4d6060d..e1a3d00 100644
--- a/src/main/java/com/gitblit/utils/FederationUtils.java
+++ b/src/main/java/com/gitblit/utils/FederationUtils.java
@@ -44,9 +44,9 @@
 
 /**
  * Utility methods for federation functions.
- * 
+ *
  * @author James Moger
- * 
+ *
  */
 public class FederationUtils {
 
@@ -66,7 +66,7 @@
 
 	/**
 	 * Returns an url to this servlet for the specified parameters.
-	 * 
+	 *
 	 * @param sourceURL
 	 *            the url of the source gitblit instance
 	 * @param token
@@ -79,7 +79,7 @@
 	}
 
 	/**
-	 * 
+	 *
 	 * @param remoteURL
 	 *            the url of the remote gitblit instance
 	 * @param tokenType
@@ -109,7 +109,7 @@
 	/**
 	 * Returns the list of federated gitblit instances that this instance will
 	 * try to pull.
-	 * 
+	 *
 	 * @return list of registered gitblit instances
 	 */
 	public static List<FederationModel> getFederationRegistrations(IStoredSettings settings) {
@@ -194,7 +194,7 @@
 	 * sent by an pulling Gitblit instance to an origin Gitblit instance as part
 	 * of the proposal process. This is to ensure that the pulling Gitblit
 	 * instance has an IP route to the origin instance.
-	 * 
+	 *
 	 * @param remoteUrl
 	 *            the remote Gitblit instance to send a federation proposal to
 	 * @param proposal
@@ -210,7 +210,7 @@
 
 	/**
 	 * Sends a federation proposal to the Gitblit instance at remoteUrl
-	 * 
+	 *
 	 * @param remoteUrl
 	 *            the remote Gitblit instance to send a federation proposal to
 	 * @param proposal
@@ -246,7 +246,7 @@
 	/**
 	 * Retrieves a map of the repositories at the remote gitblit instance keyed
 	 * by the repository clone url.
-	 * 
+	 *
 	 * @param registration
 	 * @param checkExclusions
 	 *            should returned repositories remove registration exclusions
@@ -272,7 +272,7 @@
 
 	/**
 	 * Tries to pull the gitblit user accounts from the remote gitblit instance.
-	 * 
+	 *
 	 * @param registration
 	 * @return a collection of UserModel objects
 	 * @throws Exception
@@ -287,7 +287,7 @@
 	/**
 	 * Tries to pull the gitblit team definitions from the remote gitblit
 	 * instance.
-	 * 
+	 *
 	 * @param registration
 	 * @return a collection of TeamModel objects
 	 * @throws Exception
@@ -302,7 +302,7 @@
 	/**
 	 * Tries to pull the gitblit server settings from the remote gitblit
 	 * instance.
-	 * 
+	 *
 	 * @param registration
 	 * @return a map of the remote gitblit settings
 	 * @throws Exception
@@ -315,7 +315,7 @@
 
 	/**
 	 * Tries to pull the referenced scripts from the remote gitblit instance.
-	 * 
+	 *
 	 * @param registration
 	 * @return a map of the remote gitblit scripts by script name
 	 * @throws Exception
@@ -328,7 +328,7 @@
 
 	/**
 	 * Send an status acknowledgment to the remote Gitblit server.
-	 * 
+	 *
 	 * @param identification
 	 *            identification of this pulling instance
 	 * @param registration

--
Gitblit v1.9.1