aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java43
1 files changed, 38 insertions, 5 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java
index 856047ee19..008f1d9b20 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/LsRefsV2Request.java
@@ -53,22 +53,36 @@ public final class LsRefsV2Request {
this.clientSID = clientSID;
}
- /** @return ref prefixes that the client requested. */
+ /**
+ * Get ref prefixes
+ *
+ * @return ref prefixes that the client requested.
+ */
public List<String> getRefPrefixes() {
return refPrefixes;
}
- /** @return true if the client requests symbolic references. */
+ /**
+ * Whether the client requests symbolic references
+ *
+ * @return true if the client requests symbolic references.
+ */
public boolean getSymrefs() {
return symrefs;
}
- /** @return true if the client requests tags to be peeled. */
+ /**
+ * Whether the client requests tags to be peeled
+ *
+ * @return true if the client requests tags to be peeled.
+ */
public boolean getPeel() {
return peel;
}
/**
+ * Get agent reported by the client
+ *
* @return agent as reported by the client
*
* @since 5.2
@@ -79,6 +93,8 @@ public final class LsRefsV2Request {
}
/**
+ * Get session-id reported by the client
+ *
* @return session-id as reported by the client
*
* @since 6.4
@@ -106,7 +122,11 @@ public final class LsRefsV2Request {
return serverOptions;
}
- /** @return A builder of {@link LsRefsV2Request}. */
+ /**
+ * Create builder
+ *
+ * @return A builder of {@link LsRefsV2Request}.
+ */
public static Builder builder() {
return new Builder();
}
@@ -129,7 +149,10 @@ public final class LsRefsV2Request {
}
/**
+ * Set ref prefixes
+ *
* @param value
+ * ref prefix values
* @return the Builder
*/
public Builder setRefPrefixes(List<String> value) {
@@ -138,7 +161,10 @@ public final class LsRefsV2Request {
}
/**
+ * Set symrefs
+ *
* @param value
+ * of symrefs
* @return the Builder
*/
public Builder setSymrefs(boolean value) {
@@ -147,7 +173,10 @@ public final class LsRefsV2Request {
}
/**
+ * Set whether to peel tags
+ *
* @param value
+ * of peel
* @return the Builder
*/
public Builder setPeel(boolean value) {
@@ -203,7 +232,11 @@ public final class LsRefsV2Request {
return this;
}
- /** @return LsRefsV2Request */
+ /**
+ * Builds the request
+ *
+ * @return LsRefsV2Request the request
+ */
public LsRefsV2Request build() {
return new LsRefsV2Request(
Collections.unmodifiableList(refPrefixes), symrefs, peel,