| Modifier and Type | Field and Description |
|---|---|
| pack-priv Map | |
| pack-priv StringBuilder | |
| pack-priv String | |
| pack-priv final SortedMap | |
| pack-priv URIish |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv void | |
| public final Ref | Returns: the requested ref; null if the remote did not advertise this ref.name of the ref to obtain. name)Get a single advertised ref by name. |
| public Collection | Returns: available/advertised refs. Never null. Not modifiable. The collection can be empty if the remote side has no refs (it is an empty/newly created repository).Get the complete list of refs advertised by the remote. |
| public String | Returns: the messages returned by the remote, most likely terminated by a newline (LF) character. The empty string is returned if the remote produced no additional messages.Get the additional messages, if any, returned by the remote process. |
| public String | Returns: advertised user agent, e.g."JGit/4.0". Null if the peer
did not advertise version information.Get the user agent advertised by the peer server, if available. |
| public TrackingRefUpdate | Returns: status of the local ref; null if this local ref was not touched during this operation.name of the local ref (e.g. "refs/remotes/origin/master"). localName)Get the status for a specific local tracking ref update. |
| public Collection | Returns: unmodifiable collection of local updates. Never null. Empty if there were no local tracking refs updated.Get the status of all local tracking refs that were updated. |
| public URIish | Returns: the URI describing the location of the remote repository.Get the URI this result came from. |
| pack-priv void |
| advertisedRefs | back to summary |
|---|---|
| pack-priv Map<String, Ref> advertisedRefs | |
| messageBuffer | back to summary |
|---|---|
| pack-priv StringBuilder messageBuffer | |
| peerUserAgent | back to summary |
|---|---|
| pack-priv String peerUserAgent | |
| updates | back to summary |
|---|---|
| pack-priv final SortedMap<String, TrackingRefUpdate> updates | |
| uri | back to summary |
|---|---|
| pack-priv URIish uri | |
| OperationResult | back to summary |
|---|---|
| public OperationResult() | |
| add | back to summary |
|---|---|
| pack-priv void add(TrackingRefUpdate u) | |
| addMessages | back to summary |
|---|---|
| pack-priv void addMessages(String msg) | |
| getAdvertisedRef | back to summary |
|---|---|
| public final Ref getAdvertisedRef(String name) Get a single advertised ref by name.
The name supplied should be valid ref name. To get a peeled value for a
ref (aka | |
| getAdvertisedRefs | back to summary |
|---|---|
| public Collection Get the complete list of refs advertised by the remote. The returned refs may appear in any order. If the caller needs these to be sorted, they should be copied into a new array or List and then sorted by the caller as necessary.
| |
| getMessages | back to summary |
|---|---|
| public String getMessages() Get the additional messages, if any, returned by the remote process. These messages are most likely informational or error messages, sent by the remote peer, to help the end-user correct any problems that may have prevented the operation from completing successfully. Application UIs should try to show these in an appropriate context.
| |
| getPeerUserAgent | back to summary |
|---|---|
| public String getPeerUserAgent() Get the user agent advertised by the peer server, if available.
| |
| getTrackingRefUpdate | back to summary |
|---|---|
| public TrackingRefUpdate getTrackingRefUpdate(String localName) Get the status for a specific local tracking ref update.
| |
| getTrackingRefUpdates | back to summary |
|---|---|
| public Collection Get the status of all local tracking refs that were updated.
| |
| getURI | back to summary |
|---|---|
| public URIish getURI() Get the URI this result came from. Each transport instance connects to at most one URI at any point in time.
| |
| setAdvertisedRefs | back to summary |
|---|---|
| pack-priv void setAdvertisedRefs(URIish u, Map<String, Ref> ar) | |