Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.awtui | |
org.eclipse.jgit.console | |
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.internal.transport.sshd | |
org.eclipse.jgit.junit.http | |
org.eclipse.jgit.lfs.internal | |
org.eclipse.jgit.lib.internal | |
org.eclipse.jgit.pgm | |
org.eclipse.jgit.transport |
Transport (fetch/push) for different protocols.
|
org.eclipse.jgit.transport.sshd | |
org.eclipse.jgit.util |
Utility classes.
|
Modifier and Type | Field and Description |
---|---|
private URIish |
RemoteSetUrlCommand.remoteUri |
private URIish |
RemoteAddCommand.uri |
Modifier and Type | Method and Description |
---|---|
private FetchResult |
CloneCommand.fetch(Repository clonedRepo,
URIish u) |
RemoteSetUrlCommand |
RemoteSetUrlCommand.setRemoteUri(URIish remoteUri)
The new URL for the remote.
|
RemoteAddCommand |
RemoteAddCommand.setUri(URIish uri)
The URL of the repository for the new remote.
|
void |
RemoteSetUrlCommand.setUri(URIish uri)
Deprecated.
|
(package private) void |
CloneCommand.verifyDirectories(URIish u) |
Modifier and Type | Method and Description |
---|---|
boolean |
AwtCredentialsProvider.get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
private static boolean |
AwtCredentialsProvider.interactive(URIish uri,
CredentialItem[] items) |
Modifier and Type | Method and Description |
---|---|
boolean |
ConsoleCredentialsProvider.get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
Constructor and Description |
---|
MissingBundlePrerequisiteException(URIish uri,
java.util.Map<ObjectId,java.lang.String> missingCommits)
Constructs a MissingBundlePrerequisiteException for a set of objects.
|
NoRemoteRepositoryException(URIish uri,
java.lang.String s)
Constructs an exception indicating a repository does not exist.
|
PackProtocolException(URIish uri,
java.lang.String s)
Constructs an PackProtocolException with the specified detail message
prefixed with provided URI.
|
PackProtocolException(URIish uri,
java.lang.String s,
java.lang.Throwable cause)
Constructs an PackProtocolException with the specified detail message
prefixed with provided URI.
|
RemoteRepositoryException(URIish uri,
java.lang.String message)
Constructs a RemoteRepositoryException for a message.
|
TooLargeObjectInPackException(URIish uri,
java.lang.String s)
Construct a too large object in pack exception.
|
TooLargePackException(URIish uri,
java.lang.String s)
Construct a too large pack exception.
|
TransportException(URIish uri,
java.lang.String s)
Constructs an TransportException with the specified detail message
prefixed with provided URI.
|
TransportException(URIish uri,
java.lang.String s,
java.lang.Throwable cause)
Constructs an TransportException with the specified detail message
prefixed with provided URI.
|
UnsupportedCredentialItem(URIish uri,
java.lang.String s)
Constructs an UnsupportedCredentialItem with the specified detail message
prefixed with provided URI.
|
Modifier and Type | Field and Description |
---|---|
private URIish |
RemoteGitReplica.uri |
Modifier and Type | Method and Description |
---|---|
URIish |
RemoteGitReplica.getURI()
Get URI to contact the remote peer repository.
|
Constructor and Description |
---|
RemoteGitReplica(KetchLeader leader,
java.lang.String name,
URIish uri,
ReplicaConfig cfg,
RemoteConfig rc)
Configure a new remote.
|
Modifier and Type | Method and Description |
---|---|
private URIish |
PasswordProviderWrapper.toUri(java.lang.String resourceKey)
Creates a
URIish from a given string. |
static URIish |
JGitUserInteraction.toURI(java.lang.String userName,
java.net.InetSocketAddress remote)
Creates a
URIish from the given remote address and user name. |
Modifier and Type | Method and Description |
---|---|
private static boolean |
OpenSshServerKeyDatabase.AskUser.askUser(CredentialsProvider provider,
URIish uri,
java.lang.String prompt,
java.lang.String... messages) |
Modifier and Type | Field and Description |
---|---|
private URIish |
SimpleHttpServer.secureUri |
private URIish |
SimpleHttpServer.uri |
Modifier and Type | Method and Description |
---|---|
protected static URIish |
HttpTestCase.extendPath(URIish uri,
java.lang.String pathComponents)
Extend a path
|
URIish |
SimpleHttpServer.getSecureUri()
Get the
secureUri . |
URIish |
SimpleHttpServer.getUri()
Get the
uri . |
protected URIish |
HttpTestCase.toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
java.lang.String name)
Convert a path relative to the app's context path to a URIish
|
private URIish |
SimpleHttpServer.toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
java.lang.String name) |
protected URIish |
HttpTestCase.toURIish(java.lang.String path)
Convert path to URIish
|
private URIish |
SimpleHttpServer.toURIish(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
protected static URIish |
HttpTestCase.extendPath(URIish uri,
java.lang.String pathComponents)
Extend a path
|
java.util.List<AccessEvent> |
AppServer.getRequests(URIish base,
java.lang.String path)
Get requests.
|
protected java.util.List<AccessEvent> |
HttpTestCase.getRequests(URIish base,
java.lang.String path)
Get requests.
|
static java.lang.String |
HttpTestCase.join(URIish base,
java.lang.String path)
Join a base URIish and a path
|
static java.lang.String |
HttpTestCase.loose(URIish base,
AnyObjectId id)
Create loose object path
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
LfsConnectionFactory.extractProjectName(URIish u) |
private static Protocol.ExpiringAction |
LfsConnectionFactory.getSshAuthentication(Repository db,
java.lang.String purpose,
java.lang.String remoteUrl,
URIish u) |
Modifier and Type | Method and Description |
---|---|
private URIish |
BouncyCastleGpgKeyPassphrasePrompt.createURI(java.nio.file.Path keyLocation) |
Modifier and Type | Method and Description |
---|---|
private void |
Push.printPushResult(ObjectReader reader,
URIish uri,
PushResult result) |
private void |
Push.printRefUpdateResult(ObjectReader reader,
URIish uri,
PushResult result,
RemoteRefUpdate rru) |
Modifier and Type | Field and Description |
---|---|
private URIish |
TransportHttp.currentUri
The current URI we're talking to.
|
(package private) URIish |
FetchHeadRecord.sourceURI |
protected URIish |
BasePackConnection.uri
Remote repository location.
|
private URIish |
CredentialsProviderUserInfo.uri |
(package private) URIish |
JschSession.uri |
(package private) URIish |
OperationResult.uri |
protected URIish |
Transport.uri
The URI used to create this transport.
|
private URIish |
WalkPushConnection.uri
Location of the remote repository we are writing to.
|
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<URIish,TestProtocol.Handle> |
TestProtocol.handles |
private java.util.List<URIish> |
RemoteConfig.pushURIs |
private java.util.List<URIish> |
RemoteConfig.uris |
Modifier and Type | Method and Description |
---|---|
private static URIish |
CredentialsProviderUserInfo.createURI(com.jcraft.jsch.Session session) |
URIish |
OperationResult.getURI()
Get the URI this result came from.
|
URIish |
Transport.getURI()
Get the URI this transport connects to.
|
(package private) URIish |
TransportAmazonS3.DatabaseS3.getURI() |
(package private) URIish |
TransportHttp.HttpObjectDB.getURI() |
(package private) URIish |
TransportSftp.SftpObjectDB.getURI() |
(package private) abstract URIish |
WalkRemoteObjectDatabase.getURI() |
private URIish |
TransportHttp.redirect(java.net.URL currentUrl,
java.lang.String location,
java.lang.String checkFor,
int redirects) |
URIish |
TestProtocol.register(C req,
Repository remote)
Register a repository connection over the internal test protocol.
|
URIish |
URIish.setHost(java.lang.String n)
Return a new URI matching this one, but with a different host.
|
URIish |
URIish.setPass(java.lang.String n)
Return a new URI matching this one, but with a different password.
|
URIish |
URIish.setPath(java.lang.String n)
Return a new URI matching this one, but with a different path.
|
URIish |
URIish.setPort(int n)
Return a new URI matching this one, but with a different port.
|
URIish |
URIish.setRawPath(java.lang.String n)
Return a new URI matching this one, but with a different (raw) path.
|
URIish |
URIish.setScheme(java.lang.String n)
Return a new URI matching this one, but with a different scheme.
|
URIish |
URIish.setUser(java.lang.String n)
Return a new URI matching this one, but with a different user.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<URIish> |
RemoteConfig.getPushURIs()
Get all configured push-only URIs under this remote.
|
java.util.List<URIish> |
RemoteConfig.getURIs()
Get all configured URIs under this remote.
|
private static java.util.List<URIish> |
Transport.getURIs(RemoteConfig cfg,
Transport.Operation op) |
Modifier and Type | Method and Description |
---|---|
boolean |
RemoteConfig.addPushURI(URIish toAdd)
Add a new push-only URI to the end of the list of URIs.
|
boolean |
RemoteConfig.addURI(URIish toAdd)
Add a new URI to the end of the list of URIs.
|
(package private) boolean |
HttpAuthMethod.authorize(URIish uri,
CredentialsProvider credentialsProvider)
Update this method with the credentials from the URIish.
|
boolean |
TransportProtocol.canHandle(URIish uri)
Determine if this protocol can handle a particular URI.
|
boolean |
TransportProtocol.canHandle(URIish uri,
Repository local,
java.lang.String remoteName)
Determine if this protocol can handle a particular URI.
|
private NoRemoteRepositoryException |
TransportHttp.createNotFoundException(URIish u,
java.net.URL url,
java.lang.String msg) |
private java.lang.String |
HttpConfig.findMatch(java.util.Set<java.lang.String> names,
URIish uri)
Determines the best match from a set of subsection names (representing
prefix URLs) for the given
URIish . |
boolean |
ChainingCredentialsProvider.get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
abstract boolean |
CredentialsProvider.get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
boolean |
NetRCCredentialsProvider.get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
boolean |
UsernamePasswordCredentialsProvider.get(URIish uri,
CredentialItem... items)
Ask for the credential items to be populated.
|
boolean |
CredentialsProvider.get(URIish uri,
java.util.List<CredentialItem> items)
Ask for the credential items to be populated.
|
RemoteSession |
JschConfigSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms)
Open (or reuse) a session to a host.
|
abstract RemoteSession |
SshSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms)
Open (or reuse) a session to a host.
|
private void |
HttpConfig.init(Config config,
URIish uri) |
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.
|
static Transport |
Transport.open(URIish uri)
Open a new transport with no local repository.
|
Transport |
TransportProtocol.open(URIish uri)
Open a new transport instance to the remote 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.
|
boolean |
RemoteConfig.removePushURI(URIish toRemove)
Remove a push-only URI from the list of URIs.
|
boolean |
RemoteConfig.removeURI(URIish toRemove)
Remove a URI from the list of URIs.
|
void |
CredentialsProvider.reset(URIish uri)
Reset the credentials provider for the given URI
|
(package private) void |
OperationResult.setAdvertisedRefs(URIish u,
java.util.Map<java.lang.String,Ref> ar) |
protected void |
TransportHttp.setURI(URIish uri)
Set uri a
URIish object. |
private java.net.URL |
TransportHttp.toURL(URIish urish) |
Constructor and Description |
---|
HttpConfig(Config config,
URIish uri)
Creates a new
HttpConfig tailored to
the given URIish . |
HttpConfig(URIish uri)
Creates a
HttpConfig that reads values
solely from the user config. |
HttpTransport(Repository local,
URIish uri)
Create a new transport instance.
|
HttpTransport(URIish uri)
Create a minimal HTTP transport instance not tied to a single repository.
|
JschSession(com.jcraft.jsch.Session session,
URIish uri)
Create a new session object by passing the real Jsch session and the URI
information.
|
SshTransport(Repository local,
URIish uri)
Create a new transport instance.
|
SshTransport(URIish uri)
Create a new transport instance without a local repository.
|
TcpTransport(Repository local,
URIish uri)
Create a new transport instance.
|
TcpTransport(URIish uri)
Create a new transport instance without a local repository.
|
Transport(Repository local,
URIish uri)
Create a new transport instance.
|
Transport(URIish uri)
Create a minimal transport instance not tied to a single repository.
|
TransportAmazonS3(Repository local,
URIish uri) |
TransportBundleFile(Repository local,
URIish uri,
java.io.File bundlePath) |
TransportBundleFile(URIish uri,
java.io.File bundlePath)
Constructor for TransportBundleFile.
|
TransportBundleStream(Repository db,
URIish uri,
java.io.InputStream in)
Create a new transport to fetch objects from a streamed bundle.
|
TransportGitAnon(Repository local,
URIish uri) |
TransportGitAnon(URIish uri) |
TransportGitSsh(Repository local,
URIish uri) |
TransportGitSsh(URIish uri) |
TransportHttp(Repository local,
URIish uri) |
TransportHttp(URIish uri)
Create a minimal HTTP transport with default configuration values.
|
TransportInternal(Repository local,
URIish uri,
TestProtocol.Handle handle) |
TransportLocal(Repository local,
URIish uri,
java.io.File gitDir) |
TransportLocal(URIish uri,
java.io.File gitDir) |
TransportSftp(Repository local,
URIish uri) |
URIish(URIish u) |
Modifier and Type | Field and Description |
---|---|
private URIish |
SshdSession.uri |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<URIish,IdentityPasswordProvider.State> |
IdentityPasswordProvider.current
Counts per resource key.
|
Modifier and Type | Method and Description |
---|---|
char[] |
IdentityPasswordProvider.getPassphrase(URIish uri,
int attempt) |
char[] |
KeyPasswordProvider.getPassphrase(URIish uri,
int attempt)
Obtains a passphrase to use to decrypt an ecrypted private key.
|
protected char[] |
IdentityPasswordProvider.getPassword(URIish uri,
int attempt,
IdentityPasswordProvider.State state)
Retrieves a password to decrypt a private key.
|
private char[] |
IdentityPasswordProvider.getPassword(URIish uri,
java.lang.String message) |
SshdSession |
SshdSessionFactory.getSession(URIish uri,
CredentialsProvider credentialsProvider,
FS fs,
int tms) |
protected boolean |
IdentityPasswordProvider.keyLoaded(URIish uri,
IdentityPasswordProvider.State state,
char[] password,
java.lang.Exception err)
Invoked to inform the password provider about the decoding result.
|
boolean |
IdentityPasswordProvider.keyLoaded(URIish uri,
int attempt,
java.lang.Exception error) |
boolean |
KeyPasswordProvider.keyLoaded(URIish uri,
int attempt,
java.lang.Exception error)
Invoked after a key has been loaded.
|
Constructor and Description |
---|
SshdSession(URIish uri,
java.util.function.Supplier<org.apache.sshd.client.SshClient> clientFactory) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
SshSupport.runSshCommand(URIish sshUri,
CredentialsProvider provider,
FS fs,
java.lang.String command,
int timeout)
Utility to execute a remote SSH command and read the first line of
output.
|