| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final Set | |
| pack-priv final Set | |
| pack-priv final String | |
| pack-priv final List | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final FilterSpec | |
| pack-priv final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | FetchRequest(Set<ObjectId>
list of want ids wantIds, int how deep to go in the tree depth, Set<ObjectId> commits the client has without history clientShallowCommits, FilterSpec the filter spec filterSpec, Set<String> capabilities sent in the request clientCapabilities, int Requests that the shallow clone/fetch should be cut at a
specific time, instead of depth deepenSince, List<String> Requests that the shallow clone/fetch should be cut at these
specific revisions instead of a depth. deepenNots, String agent as reported by the client in the request body agent, String agent as reported by the client in the request body clientSID)Initialize the common fields of a fetch request. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | Returns: string identifying the agent (as sent in the request body by the client)Get string identifying the agent |
| pack-priv Set | Returns: capabilities sent by the client (excluding the "agent" capability)Capabilities that the client wants enabled from the server. |
| pack-priv Set | Returns: set of commits the client has declared as shallow.Shallow commits the client already has. |
| pack-priv String | Returns: string identifying the client session ID (as sent in the request body by the client)Get string identifying the client session ID |
| pack-priv List | |
| pack-priv int | Returns: timestamp in seconds since the epoch, where to stop the shallow fetch/clone. Defaults to 0 if not set in the request.The value in a "deepen-since" line in the request, indicating the timestamp where to stop fetching/cloning. |
| pack-priv int | Returns: the depth set in a "deepen" line. 0 by default.Get the depth set in a "deepen" line |
| pack-priv FilterSpec | Returns: the filter spec given in a "filter" lineGet the filter spec given in a "filter" line |
| pack-priv Set | Returns: object ids in the "want" (and "want-ref") lines of the requestGet object ids in the "want" lines |
| agent | back to summary |
|---|---|
| pack-priv final String agent
| |
| clientCapabilities | back to summary |
|---|---|
| pack-priv final Set<String> clientCapabilities | |
| clientShallowCommits | back to summary |
|---|---|
| pack-priv final Set<ObjectId> clientShallowCommits | |
| clientSID | back to summary |
|---|---|
| pack-priv final String clientSID
| |
| deepenNots | back to summary |
|---|---|
| pack-priv final List<String> deepenNots | |
| deepenSince | back to summary |
|---|---|
| pack-priv final int deepenSince | |
| depth | back to summary |
|---|---|
| pack-priv final int depth | |
| filterSpec | back to summary |
|---|---|
| pack-priv final FilterSpec filterSpec | |
| wantIds | back to summary |
|---|---|
| pack-priv final Set<ObjectId> wantIds | |
| FetchRequest | back to summary |
|---|---|
| pack-priv FetchRequest(Set<ObjectId> wantIds, int depth, Set<ObjectId> clientShallowCommits, FilterSpec filterSpec, Set<String> clientCapabilities, int deepenSince, List<String> deepenNots, String agent, String clientSID) Initialize the common fields of a fetch request.
| |
| getAgent | back to summary |
|---|---|
| pack-priv String getAgent() Get string identifying the agent | |
| getClientCapabilities | back to summary |
|---|---|
| pack-priv Set Capabilities that the client wants enabled from the server.
Capabilities are options that tune the expected response from the server,
like "thin-pack", "no-progress" or "ofs-delta". This list should be a
subset of the capabilities announced by the server in its first response.
These options are listed and well-defined in the git protocol
specification.
The agent capability is not included in this set. It can be retrieved via
| |
| getClientShallowCommits | back to summary |
|---|---|
| pack-priv Set Shallow commits the client already has. These are sent by the client in "shallow" request lines. | |
| getClientSID | back to summary |
|---|---|
| pack-priv String getClientSID() Get string identifying the client session ID | |
| getDeepenNots | back to summary |
|---|---|
| pack-priv List Get refs received in "deepen-not" lines | |
| getDeepenSince | back to summary |
|---|---|
| pack-priv int getDeepenSince() The value in a "deepen-since" line in the request, indicating the timestamp where to stop fetching/cloning.
| |
| getDepth | back to summary |
|---|---|
| pack-priv int getDepth() Get the depth set in a "deepen" line
| |
| getFilterSpec | back to summary |
|---|---|
| pack-priv FilterSpec getFilterSpec() Get the filter spec given in a "filter" line
| |
| getWantIds | back to summary |
|---|---|
| pack-priv Set Get object ids in the "want" lines | |