java.lang.Object
org.eclipse.jgit.transport.LsRefsV2Request
ls-refs protocol v2 request.
This is used as an input to ProtocolV2Hook
.
- Since:
- 5.1
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LsRefsV2Request.Builder
builder()
Create buildergetAgent()
Get agent reported by the clientGet session-id reported by the clientboolean
getPeel()
Whether the client requests tags to be peeledGet ref prefixesGet application-specific options provided by the client using --server-option.boolean
Whether the client requests symbolic references
-
Method Details
-
getRefPrefixes
Get ref prefixes- Returns:
- ref prefixes that the client requested.
-
getSymrefs
public boolean getSymrefs()Whether the client requests symbolic references- Returns:
- true if the client requests symbolic references.
-
getPeel
public boolean getPeel()Whether the client requests tags to be peeled- Returns:
- true if the client requests tags to be peeled.
-
getAgent
Get agent reported by the client- Returns:
- agent as reported by the client
- Since:
- 5.2
-
getClientSID
Get session-id reported by the client- Returns:
- session-id as reported by the client
- Since:
- 6.4
-
getServerOptions
Get application-specific options provided by the client using --server-option.It returns just the content, without the "server-option=" prefix. E.g. a request with server-option=A and server-option=B lines returns the list [A, B].
- Returns:
- application-specific options from the client as an unmodifiable list
- Since:
- 5.2
-
builder
Create builder- Returns:
- A builder of
LsRefsV2Request
.
-