Package | Description |
---|---|
org.eclipse.jgit.errors |
Exceptions thrown by lower-level JGit APIs.
|
org.eclipse.jgit.internal.ketch |
Distributed consensus system built on Git.
|
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.transport.sshd |
Modifier and Type | Class and Description |
---|---|
class |
MissingBundlePrerequisiteException
Indicates a base/common object was required, but is not found.
|
class |
NoRemoteRepositoryException
Indicates a remote repository does not exist.
|
class |
PackProtocolException
Indicates a protocol error has occurred while fetching/pushing objects.
|
class |
RemoteRepositoryException
Contains a message from the remote repository indicating a problem.
|
class |
RepositoryNotFoundException
Indicates a local repository does not exist.
|
class |
TooLargeObjectInPackException
Thrown when PackParser finds an object larger than a predefined limit
|
class |
TooLargePackException
Thrown when a pack exceeds a given size limit
|
Modifier and Type | Method and Description |
---|---|
protected void |
RemoteGitReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req)
Fetch objects from the remote using the calling thread.
|
private void |
RemoteGitReplica.fetch(Transport transport,
ReplicaFetchRequest req) |
private void |
RemoteGitReplica.push(Repository repo,
ReplicaPushRequest req) |
Modifier and Type | Class and Description |
---|---|
class |
WantNotValidException
Indicates client requested an object the server does not want to serve.
|
Modifier and Type | Method and Description |
---|---|
protected TransportException |
BasePackPushConnection.noRepository()
Create an exception to indicate problems finding a remote repository.
|
protected TransportException |
BasePackConnection.noRepository()
Create an exception to indicate problems finding a remote repository.
|
Modifier and Type | Method and Description |
---|---|
private void |
FetchProcess.addUpdateBatchCommands(FetchResult result,
BatchRefUpdate batch) |
private boolean |
WalkFetchConnection.alreadyHave(AnyObjectId id) |
private boolean |
FetchProcess.askForIsComplete() |
(package private) void |
TransportGitSsh.checkExecFailure(int status,
java.lang.String exe,
java.lang.String why) |
private HttpConnection |
TransportHttp.connect(java.lang.String service) |
private void |
WalkPushConnection.createNewRepository(java.util.List<RemoteRefUpdate> updates) |
private TrackingRefUpdate |
FetchProcess.createUpdate(RefSpec spec,
ObjectId newId) |
protected void |
WalkFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Implementation of
BaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch. |
protected abstract void |
BaseFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Implementation of
BaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch. |
protected void |
BundleFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Implementation of
BaseFetchConnection.fetch(ProgressMonitor, Collection, Set)
without checking for multiple fetch. |
protected void |
TransportHttp.SmartHttpFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream) |
protected void |
BasePackFetchConnection.doFetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream)
Execute common ancestor negotiation and fetch the objects.
|
protected void |
TransportHttp.SmartHttpPushConnection.doPush(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates,
java.io.OutputStream outputStream) |
protected void |
BasePackPushConnection.doPush(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates,
java.io.OutputStream outputStream)
Push one or more objects and update the remote repository.
|
private boolean |
WalkFetchConnection.downloadLooseObject(AnyObjectId id,
java.lang.String looseName,
WalkRemoteObjectDatabase remote) |
private void |
WalkFetchConnection.downloadObject(ProgressMonitor pm,
AnyObjectId id) |
private boolean |
WalkFetchConnection.downloadPackedObject(ProgressMonitor monitor,
AnyObjectId id) |
private java.lang.String |
BasePackFetchConnection.enableCapabilities() |
java.lang.Process |
TransportGitSsh.ExtSession.exec(java.lang.String command,
int timeout) |
(package private) PushResult |
PushProcess.execute(ProgressMonitor monitor)
Perform push operation between local and remote repository - set remote
refs appropriately, send needed objects and update local tracking refs.
|
(package private) void |
FetchProcess.execute(ProgressMonitor monitor,
FetchResult result) |
private void |
FetchProcess.executeImp(ProgressMonitor monitor,
FetchResult result) |
private java.util.Collection<Ref> |
FetchProcess.expandAutoFollowTags() |
private void |
FetchProcess.expandFetchTags() |
private void |
FetchProcess.expandSingle(RefSpec spec,
java.util.Set<Ref> matched) |
private void |
FetchProcess.expandWildcard(RefSpec spec,
java.util.Set<Ref> matched) |
void |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
FetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BaseFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BasePackFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream outputStream)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
FetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.
|
void |
BaseFetchConnection.fetch(ProgressMonitor monitor,
java.util.Collection<Ref> want,
java.util.Set<ObjectId> have,
java.io.OutputStream out)
Fetch objects we don't have but that are reachable from advertised refs.
|
FetchResult |
Transport.fetch(ProgressMonitor monitor,
java.util.Collection<RefSpec> toFetch)
Fetch objects and refs from the remote repository to the local one.
|
private void |
FetchProcess.fetchObjects(ProgressMonitor monitor) |
protected RemoteSession |
SshTransport.getSession()
Get the default SSH session
|
abstract RemoteSession |
SshSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms)
Open (or reuse) a session to a host.
|
RemoteSession |
JschConfigSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms)
Open (or reuse) a session to a host.
|
private void |
TransportHttp.handleSslFailure(java.lang.Throwable e) |
private boolean |
FetchProcess.localHasObject(ObjectId id) |
private java.util.Map<java.lang.String,Ref> |
FetchProcess.localRefs() |
private void |
WalkFetchConnection.markLocalCommitsComplete(int until) |
private void |
WalkFetchConnection.markLocalRefsComplete(java.util.Set<ObjectId> have) |
protected void |
BaseConnection.markStartedOperation()
Helper method for ensuring one-operation per connection.
|
static Transport |
Transport.open(Repository local,
RemoteConfig cfg)
Open a new transport instance to connect two repositories.
|
static Transport |
Transport.open(Repository local,
RemoteConfig cfg,
Transport.Operation op)
Open a new transport instance to connect two repositories.
|
static Transport |
Transport.open(Repository local,
java.lang.String remote)
Open a new transport instance to connect two repositories.
|
static Transport |
Transport.open(Repository local,
java.lang.String remote,
Transport.Operation op)
Open a new transport instance to connect two repositories.
|
static Transport |
Transport.open(Repository local,
URIish uri)
Open a new transport instance to connect two repositories.
|
static Transport |
Transport.open(Repository local,
URIish uri,
java.lang.String remoteName)
Open a new transport instance to connect two repositories.
|
Transport |
TransportProtocol.open(URIish uri)
Open a new transport instance to the remote repository.
|
static Transport |
Transport.open(URIish uri)
Open a new transport with no local repository.
|
Transport |
TestProtocol.open(URIish uri,
Repository local,
java.lang.String remoteName)
Open a Transport instance to the other repository.
|
abstract Transport |
TransportProtocol.open(URIish uri,
Repository local,
java.lang.String remoteName)
Open a Transport instance to the other repository.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
RemoteConfig cfg)
Open new transport instances to connect two repositories.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
RemoteConfig cfg,
Transport.Operation op)
Open new transport instances to connect two repositories.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
java.lang.String remote)
Open new transport instances to connect two repositories.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
java.lang.String remote,
Transport.Operation op)
Open new transport instances to connect two repositories.
|
(package private) java.net.Socket |
TransportGitAnon.openConnection() |
FetchConnection |
TransportHttp.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TransportSftp.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TransportBundleFile.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TestProtocol.TransportInternal.openFetch() |
FetchConnection |
TransportGitSsh.openFetch()
Begins a new connection for fetching from the remote repository.
|
abstract FetchConnection |
Transport.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TransportGitAnon.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TransportAmazonS3.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TransportBundleStream.openFetch()
Begins a new connection for fetching from the remote repository.
|
FetchConnection |
TransportLocal.openFetch()
Begins a new connection for fetching from the remote repository.
|
PushConnection |
TransportHttp.openPush()
Begins a new connection for pushing into the remote repository.
|
PushConnection |
TransportSftp.openPush()
Begins a new connection for pushing into the remote repository.
|
PushConnection |
TestProtocol.TransportInternal.openPush() |
PushConnection |
TransportGitSsh.openPush()
Begins a new connection for pushing into the remote repository.
|
abstract PushConnection |
Transport.openPush()
Begins a new connection for pushing into the remote repository.
|
PushConnection |
TransportGitAnon.openPush()
Begins a new connection for pushing into the remote repository.
|
PushConnection |
TransportAmazonS3.openPush()
Begins a new connection for pushing into the remote repository.
|
PushConnection |
TransportLocal.openPush()
Begins a new connection for pushing into the remote repository.
|
private Repository |
TransportLocal.openRepo() |
private java.util.Map<java.lang.String,RemoteRefUpdate> |
PushProcess.prepareRemoteUpdates() |
private void |
WalkFetchConnection.process(ObjectId id) |
private void |
WalkFetchConnection.processBlob(RevObject obj) |
private void |
WalkFetchConnection.processCommit(RevObject obj) |
private void |
WalkFetchConnection.processTree(RevObject obj) |
PushResult |
Transport.push(ProgressMonitor monitor,
java.util.Collection<RemoteRefUpdate> toPush)
Push objects and refs from the local repository to the remote one.
|
PushResult |
Transport.push(ProgressMonitor monitor,
java.util.Collection<RemoteRefUpdate> toPush,
java.io.OutputStream out)
Push objects and refs from the local repository to the remote one.
|
void |
BasePackPushConnection.push(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates)
Pushes to the remote repository basing on provided specification.
|
void |
WalkPushConnection.push(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates)
Pushes to the remote repository basing on provided specification.
|
void |
PushConnection.push(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates)
Pushes to the remote repository basing on provided specification.
|
void |
BasePackPushConnection.push(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates,
java.io.OutputStream outputStream)
Pushes to the remote repository basing on provided specification.
|
void |
WalkPushConnection.push(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates,
java.io.OutputStream out)
Pushes to the remote repository basing on provided specification.
|
void |
PushConnection.push(ProgressMonitor monitor,
java.util.Map<java.lang.String,RemoteRefUpdate> refUpdates,
java.io.OutputStream out)
Pushes to the remote repository basing on provided specification.
|
private void |
WalkFetchConnection.queueWants(java.util.Collection<Ref> want) |
(package private) java.util.Map<java.lang.String,Ref> |
TransportSftp.SftpObjectDB.readAdvertisedRefs() |
protected void |
BasePackConnection.readAdvertisedRefs()
Reads the advertised references through the initialized stream.
|
(package private) java.util.Map<java.lang.String,Ref> |
TransportAmazonS3.DatabaseS3.readAdvertisedRefs() |
private void |
TransportAmazonS3.DatabaseS3.readLooseRefs(java.util.TreeMap<java.lang.String,Ref> avail) |
private void |
TransportSftp.SftpObjectDB.readLooseRefs(java.util.TreeMap<java.lang.String,Ref> avail,
java.lang.String dir,
java.lang.String prefix) |
protected void |
WalkRemoteObjectDatabase.readPackedRefs(java.util.Map<java.lang.String,Ref> avail)
Read a standard Git packed-refs file to discover known references.
|
private Ref |
TransportAmazonS3.DatabaseS3.readRef(java.util.TreeMap<java.lang.String,Ref> avail,
java.lang.String rn) |
private Ref |
TransportSftp.SftpObjectDB.readRef(java.util.TreeMap<java.lang.String,Ref> avail,
java.lang.String path,
java.lang.String name) |
private URIish |
TransportHttp.redirect(java.net.URL currentUrl,
java.lang.String location,
java.lang.String checkFor,
int redirects) |
private void |
FetchProcess.reopenConnection() |
private void |
WalkPushConnection.sendpack(java.util.List<RemoteRefUpdate> updates,
ProgressMonitor monitor) |
private PushConnection |
TransportHttp.smartPush(java.lang.String service,
HttpConnection c,
java.io.InputStream in) |
protected java.lang.Process |
TransportLocal.spawn(java.lang.String cmd)
Spawn process
|
private void |
BundleFetchConnection.verifyPrerequisites() |
private void |
FetchProcess.want(Ref src,
RefSpec spec) |
private void |
FetchProcess.wantTag(Ref r) |
Constructor and Description |
---|
BundleFetchConnection(Transport transportBundle,
java.io.InputStream src) |
ForkLocalFetchConnection() |
ForkLocalPushConnection() |
InternalFetchConnection(PackTransport transport,
UploadPackFactory<C> uploadPackFactory,
C req,
Repository remote)
Constructor for InternalFetchConnection.
|
InternalPushConnection(PackTransport transport,
ReceivePackFactory<C> receivePackFactory,
C req,
Repository remote)
Constructor for InternalPushConnection.
|
JschProcess(java.lang.String commandName,
int tms)
Opens a channel on the session ("sock") for executing the given
command, opens streams, and starts command execution.
|
PushProcess(Transport transport,
java.util.Collection<RemoteRefUpdate> toPush)
Create process for specified transport and refs updates specification.
|
PushProcess(Transport transport,
java.util.Collection<RemoteRefUpdate> toPush,
java.io.OutputStream out)
Create process for specified transport and refs updates specification.
|
SftpObjectDB(java.lang.String path) |
SftpObjectDB(TransportSftp.SftpObjectDB parent,
java.lang.String p) |
SmartHttpFetchConnection(java.io.InputStream advertisement) |
SmartHttpPushConnection(java.io.InputStream advertisement) |
SshFetchConnection() |
SshPushConnection() |
TcpFetchConnection() |
TcpPushConnection() |
Modifier and Type | Method and Description |
---|---|
SshdSession |
SshdSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms) |