java.lang.Object
org.eclipse.jgit.transport.LsRefsV2Request.Builder
- Enclosing class:
- LsRefsV2Request
A builder for
LsRefsV2Request
.-
Method Summary
Modifier and TypeMethodDescriptionaddServerOption
(String value) Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.build()
Builds the requestValue of an agent line received after the command and before the arguments.setClientSID
(String value) Value of a session-id line received after the command and before the arguments.setPeel
(boolean value) Set whether to peel tagssetRefPrefixes
(List<String> value) Set ref prefixessetSymrefs
(boolean value) Set symrefs
-
Method Details
-
setRefPrefixes
Set ref prefixes- Parameters:
value
- ref prefix values- Returns:
- the Builder
-
setSymrefs
Set symrefs- Parameters:
value
- of symrefs- Returns:
- the Builder
-
setPeel
Set whether to peel tags- Parameters:
value
- of peel- Returns:
- the Builder
-
addServerOption
Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.- Parameters:
value
- the client-supplied server-option capability, without leading "server-option=".- Returns:
- this builder
- Since:
- 5.2
-
setAgent
Value of an agent line received after the command and before the arguments. E.g. "agent=a.b.c/1.0" should set "a.b.c/1.0".- Parameters:
value
- the client-supplied agent capability, without leading "agent="- Returns:
- this builder
- Since:
- 5.2
-
setClientSID
Value of a session-id line received after the command and before the arguments. E.g. "session-id=a.b.c" should set "a.b.c".- Parameters:
value
- the client-supplied session-id capability, without leading "session-id="- Returns:
- this builder
- Since:
- 6.4
-
build
Builds the request- Returns:
- LsRefsV2Request the request
-