This transport supports the git:// protocol, usually run on
the IANA registered port 9418. It is a popular means for distributing open
source projects, as there are no authentication or authorization overheads.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final TransportProtocol |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements abstract org. Implements java. Closes this resource, relinquishing any underlying resources. |
| pack-priv Socket | |
| public FetchConnection | openFetch()
Implements abstract org. Begins a new connection for fetching from the remote repository. |
| public FetchConnection | openFetch(Collection<RefSpec>
that will be fetched via
refSpecs, String... FetchConnection#fetch(ProgressMonitor, Collection, java. laterthat will be set as ref prefixes if the server supports git
protocol V2; additionalPatterns)null values are ignoredOverrides org. Begins a new connection for fetching from the remote repository. |
| public PushConnection | openPush()
Implements abstract org. Begins a new connection for pushing into the remote repository. |
| pack-priv void |
| GIT_PORT | back to summary |
|---|---|
| pack-priv static final int GIT_PORT | |
| PROTO_GIT | back to summary |
|---|---|
| pack-priv static final TransportProtocol PROTO_GIT | |
| TransportGitAnon | back to summary |
|---|---|
| pack-priv TransportGitAnon(Repository local, URIish uri) | |
| TransportGitAnon | back to summary |
|---|---|
| pack-priv TransportGitAnon(URIish uri) | |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements java. Doc from org. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
Close any resources used by this transport. If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.
| |
| openConnection | back to summary |
|---|---|
| pack-priv Socket openConnection() throws TransportException | |
| openFetch | back to summary |
|---|---|
| public FetchConnection openFetch() throws TransportException Implements abstract org. Doc from org. Begins a new connection for fetching from the remote repository. If the transport has no local repository, the fetch connection can only be used for reading remote refs.
| |
| openFetch | back to summary |
|---|---|
| public FetchConnection openFetch(Collection<RefSpec> refSpecs, String... additionalPatterns) throws NotSupportedException, TransportException Overrides org. Doc from org. Begins a new connection for fetching from the remote repository. If the transport has no local repository, the fetch connection can only be used for reading remote refs.
If the server supports git protocol V2, the
Transports that want to support git protocol V2 must override
this; the default implementation ignores its arguments and calls
| |
| openPush | back to summary |
|---|---|
| public PushConnection openPush() throws TransportException Implements abstract org. Doc from org. Begins a new connection for pushing into the remote repository.
| |
| service | back to summary |
|---|---|
| pack-priv void service(String name, PacketLineOut pckOut, TransferConfig. | |
| Modifier and Type | Field and Description |
|---|---|
| private Socket |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. Closes this resource, relinquishing any underlying resources. |
| sock | back to summary |
|---|---|
| private Socket sock | |
| TcpFetchConnection | back to summary |
|---|---|
| pack-priv TcpFetchConnection() throws TransportException | |
| TcpFetchConnection | back to summary |
|---|---|
| pack-priv TcpFetchConnection(Collection<RefSpec> refSpecs, String... additionalPatterns) throws TransportException | |
| close | back to summary |
|---|---|
| public void close() Overrides org. Implements org. Doc from org. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
Close any resources used by this connection. If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.
If additional messages were produced by the remote peer, these should
still be retained in the connection instance for
| |
| Modifier and Type | Field and Description |
|---|---|
| private Socket |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. Closes this resource, relinquishing any underlying resources. |
| sock | back to summary |
|---|---|
| private Socket sock | |
| TcpPushConnection | back to summary |
|---|---|
| pack-priv TcpPushConnection() throws TransportException | |
| close | back to summary |
|---|---|
| public void close() Overrides org. Implements org. Doc from org. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
Close any resources used by this connection. If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.
If additional messages were produced by the remote peer, these should
still be retained in the connection instance for
| |