Uses of Class
org.eclipse.jgit.annotations.NonNull
-
-
Uses of NonNull in org.eclipse.jgit.api
Methods in org.eclipse.jgit.api with annotations of type NonNull Modifier and Type Method Description Map<String,VerificationResult>
VerifySignatureCommand. call()
Resolves
all names added to the command to git objects and verifies their signature.Method parameters in org.eclipse.jgit.api with annotations of type NonNull Modifier and Type Method Description VerifySignatureCommand
VerifySignatureCommand. setMode(VerifySignatureCommand.VerifyMode mode)
Sets the mode of operation for this command. -
Uses of NonNull in org.eclipse.jgit.events
Methods in org.eclipse.jgit.events with annotations of type NonNull Modifier and Type Method Description Collection<String>
WorkingTreeModifiedEvent. getDeleted()
Retrieves theCollection
of repository-relative paths of files that were deleted.Collection<String>
WorkingTreeModifiedEvent. getModified()
Retrieves theCollection
of repository-relative paths of files that were modified (added or updated). -
Uses of NonNull in org.eclipse.jgit.gitrepo
Methods in org.eclipse.jgit.gitrepo with annotations of type NonNull Modifier and Type Method Description byte[]
RepoCommand.RemoteFile. getContents()
Contents of the file.FileMode
RepoCommand.RemoteFile. getFileMode()
List<RepoProject>
ManifestParser. getFilteredProjects()
Getter for filterdProjects.RepoCommand.RemoteFile
RepoCommand.RemoteReader. readFileWithMode(String uri, String ref, String path)
Read contents and mode (i.e.Constructor parameters in org.eclipse.jgit.gitrepo with annotations of type NonNull Constructor Description RemoteFile(byte[] contents, FileMode fileMode)
RemoteFile(byte[] contents, FileMode fileMode)
-
Uses of NonNull in org.eclipse.jgit.gpg.bc.internal
Methods in org.eclipse.jgit.gpg.bc.internal with annotations of type NonNull Modifier and Type Method Description org.eclipse.jgit.gpg.bc.internal.BouncyCastleGpgKey
BouncyCastleGpgKeyLocator. findSecretKey()
If there is a private key directory containing keys, use pubring.kbx or pubring.gpg to find the public key; then try to find the secret key in the directory.Method parameters in org.eclipse.jgit.gpg.bc.internal with annotations of type NonNull Modifier and Type Method Description void
BouncyCastleGpgSigner. sign(CommitBuilder commit, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider)
void
BouncyCastleGpgSigner. sign(CommitBuilder commit, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider)
void
BouncyCastleGpgSigner. signObject(ObjectBuilder object, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config)
void
BouncyCastleGpgSigner. signObject(ObjectBuilder object, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config)
GpgSignatureVerifier.SignatureVerification
BouncyCastleGpgSignatureVerifier. verifySignature(RevObject object, GpgConfig config)
GpgSignatureVerifier.SignatureVerification
BouncyCastleGpgSignatureVerifier. verifySignature(RevObject object, GpgConfig config)
Constructor parameters in org.eclipse.jgit.gpg.bc.internal with annotations of type NonNull Constructor Description BouncyCastleGpgKeyLocator(String signingKey, org.eclipse.jgit.gpg.bc.internal.BouncyCastleGpgKeyPassphrasePrompt passphrasePrompt)
Create a new key locator for the specified signing key. -
Uses of NonNull in org.eclipse.jgit.gpg.bc.internal.keys
Methods in org.eclipse.jgit.gpg.bc.internal.keys with annotations of type NonNull Modifier and Type Method Description static byte[]
KeyGrip. getKeyGrip(org.bouncycastle.openpgp.PGPPublicKey publicKey)
Computes the keygrip for aPGPPublicKey
. -
Uses of NonNull in org.eclipse.jgit.ignore
Methods in org.eclipse.jgit.ignore with annotations of type NonNull Modifier and Type Method Description static IMatcher
IMatcher. createPathMatcher(String pattern, boolean dirOnly)
Creates a path matcher for the given pattern.Method parameters in org.eclipse.jgit.ignore with annotations of type NonNull Modifier and Type Method Description static IMatcher
IMatcher. createPathMatcher(String pattern, boolean dirOnly)
Creates a path matcher for the given pattern. -
Uses of NonNull in org.eclipse.jgit.internal.storage.dfs
Methods in org.eclipse.jgit.internal.storage.dfs with annotations of type NonNull Modifier and Type Method Description DfsObjDatabase.PackSource
DfsPackDescription. getPackSource()
Get the source of the pack.Method parameters in org.eclipse.jgit.internal.storage.dfs with annotations of type NonNull Modifier and Type Method Description DfsPackDescription
DfsPackDescription. setPackSource(DfsObjDatabase.PackSource source)
Set the source of the pack.Constructor parameters in org.eclipse.jgit.internal.storage.dfs with annotations of type NonNull Constructor Description DfsPackDescription(DfsRepositoryDescription repoDesc, String name, DfsObjDatabase.PackSource packSource)
Initialize a description by pack name and repository. -
Uses of NonNull in org.eclipse.jgit.internal.storage.file
Methods in org.eclipse.jgit.internal.storage.file with annotations of type NonNull Modifier and Type Method Description Map<String,Ref>
RefDirectory. exactRef(String... refs)
Read the specified references.BatchRefUpdate
FileReftableDatabase. newBatchUpdate()
Create a new batch update to attempt on this database.Method parameters in org.eclipse.jgit.internal.storage.file with annotations of type NonNull Modifier and Type Method Description void
GC. setPackConfig(PackConfig pconfig)
Set the PackConfig used when (re-)writing packfiles. -
Uses of NonNull in org.eclipse.jgit.internal.storage.pack
Method parameters in org.eclipse.jgit.internal.storage.pack with annotations of type NonNull Modifier and Type Method Description void
PackWriter. preparePack(Iterator<RevObject> objectsSource)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, Set<? extends ObjectId> want, Set<? extends ObjectId> have, Set<? extends ObjectId> shallow, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, ObjectWalk walk, Set<? extends ObjectId> interestingObjects, Set<? extends ObjectId> uninterestingObjects, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, ObjectWalk walk, Set<? extends ObjectId> interestingObjects, Set<? extends ObjectId> uninterestingObjects, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, ObjectWalk walk, Set<? extends ObjectId> interestingObjects, Set<? extends ObjectId> uninterestingObjects, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. preparePack(ProgressMonitor countingMonitor, ObjectWalk walk, Set<? extends ObjectId> interestingObjects, Set<? extends ObjectId> uninterestingObjects, Set<? extends ObjectId> noBitmaps)
Prepare the list of objects to be written to the pack stream.void
PackWriter. setFilterSpec(FilterSpec filter)
Constructor parameters in org.eclipse.jgit.internal.storage.pack with annotations of type NonNull Constructor Description PackfileUriConfig(PacketLineOut pckOut, Collection<String> protocolsSupported, CachedPackUriProvider cachedPackUriProvider)
PackfileUriConfig(PacketLineOut pckOut, Collection<String> protocolsSupported, CachedPackUriProvider cachedPackUriProvider)
PackfileUriConfig(PacketLineOut pckOut, Collection<String> protocolsSupported, CachedPackUriProvider cachedPackUriProvider)
-
Uses of NonNull in org.eclipse.jgit.internal.transport.parser
Methods in org.eclipse.jgit.internal.transport.parser with annotations of type NonNull Modifier and Type Method Description static FirstCommand
FirstCommand. fromLine(String line)
Parse the first line of a receive-pack request.Set<String>
FirstCommand. getCapabilities()
String
FirstCommand. getLine()
-
Uses of NonNull in org.eclipse.jgit.internal.transport.ssh
Methods in org.eclipse.jgit.internal.transport.ssh with annotations of type NonNull Modifier and Type Method Description Map<String,List<String>>
OpenSshConfigFile.HostEntry. getMultiValuedOptions()
Retrieves an unmodifiable map of all multi-valued options, with case-insensitive lookup by keys.Map<String,String>
OpenSshConfigFile.HostEntry. getOptions()
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.OpenSshConfigFile.HostEntry
OpenSshConfigFile. lookup(String hostName, int port, String userName)
Locate the configuration for a specific host request.Method parameters in org.eclipse.jgit.internal.transport.ssh with annotations of type NonNull Modifier and Type Method Description OpenSshConfigFile.HostEntry
OpenSshConfigFile. lookup(String hostName, int port, String userName)
Locate the configuration for a specific host request.Constructor parameters in org.eclipse.jgit.internal.transport.ssh with annotations of type NonNull Constructor Description OpenSshConfigFile(File home, File config, String localUserName)
Creates a newOpenSshConfigFile
that will read the config from fileconfig
use the given filehome
as "home" directory.OpenSshConfigFile(File home, File config, String localUserName)
Creates a newOpenSshConfigFile
that will read the config from fileconfig
use the given filehome
as "home" directory.OpenSshConfigFile(File home, File config, String localUserName)
Creates a newOpenSshConfigFile
that will read the config from fileconfig
use the given filehome
as "home" directory. -
Uses of NonNull in org.eclipse.jgit.internal.transport.sshd
Methods in org.eclipse.jgit.internal.transport.sshd with annotations of type NonNull Modifier and Type Method Description static String
GssApiMechanisms. getCanonicalName(InetSocketAddress remote)
Determines a canonical host name for use use with GSS-API.Map<String,List<String>>
JGitHostConfigEntry. getMultiValuedOptions()
Retrieves all multi-valued options.static Collection<Oid>
GssApiMechanisms. getSupportedMechanisms()
Retrieves an immutable collection of the supported mechanisms.List<PublicKey>
ServerKeyLookup. lookup(org.apache.sshd.client.session.ClientSession session, SocketAddress remote)
Retrieves all public keys known for a given remote.Method parameters in org.eclipse.jgit.internal.transport.sshd with annotations of type NonNull Modifier and Type Method Description boolean
OpenSshServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
boolean
OpenSshServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
boolean
OpenSshServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
boolean
OpenSshServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
static GSSContext
GssApiMechanisms. createContext(Oid mechanism, String fqdn)
Creates aGSSContext
for the given mechanism to authenticate with the host given byfqdn
.static GSSContext
GssApiMechanisms. createContext(Oid mechanism, String fqdn)
Creates aGSSContext
for the given mechanism to authenticate with the host given byfqdn
.static void
GssApiMechanisms. failed(Oid mechanism)
Mark the mechanisms as failed.static String
GssApiMechanisms. getCanonicalName(InetSocketAddress remote)
Determines a canonical host name for use use with GSS-API.List<PublicKey>
OpenSshServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
List<PublicKey>
OpenSshServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
List<PublicKey>
OpenSshServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
static InetAddress
GssApiMechanisms. resolve(InetSocketAddress remote)
Resolves anInetSocketAddress
.static void
GssApiMechanisms. worked(Oid mechanism)
Report that this mechanism was used successfully.Constructor parameters in org.eclipse.jgit.internal.transport.sshd with annotations of type NonNull Constructor Description JGitServerKeyVerifier(ServerKeyDatabase database)
Creates a newJGitServerKeyVerifier
using the givenServerKeyDatabase
.PasswordProviderWrapper(Supplier<KeyPasswordProvider> factory)
Creates a newPasswordProviderWrapper
. -
Uses of NonNull in org.eclipse.jgit.internal.transport.sshd.proxy
Methods in org.eclipse.jgit.internal.transport.sshd.proxy with annotations of type NonNull Modifier and Type Method Description Map<String,String>
AuthenticationChallenge. getArguments()
Retrieves the arguments of the challenge. -
Uses of NonNull in org.eclipse.jgit.junit.ssh
Fields in org.eclipse.jgit.junit.ssh with annotations of type NonNull Modifier and Type Field Description protected List<KeyPair>
SshTestGitServer. hostKeys
protected Repository
SshTestGitServer. repository
protected PublicKey
SshTestGitServer. testKey
protected String
SshTestGitServer. testUser
Methods in org.eclipse.jgit.junit.ssh with annotations of type NonNull Modifier and Type Method Description protected List<org.apache.sshd.server.subsystem.SubsystemFactory>
SshTestGitServer. configureSubsystems()
Configures the test server's subsystems (sftp, scp).Method parameters in org.eclipse.jgit.junit.ssh with annotations of type NonNull Modifier and Type Method Description void
SshTestGitServer. addHostKey(Path key, boolean inFront)
Adds an additional host key to the server.void
SshTestGitServer. addHostKey(KeyPair key, boolean inFront)
Adds an additional host key to the server.void
SshTestGitServer. setTestUserPublicKey(PublicKey key)
Sets the test user's public key on the server.Constructor parameters in org.eclipse.jgit.junit.ssh with annotations of type NonNull Constructor Description SshTestGitServer(String testUser, Path testKey, Repository repository, byte[] hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, byte[] hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, byte[] hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, byte[] hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, Path testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, PublicKey testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, PublicKey testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, PublicKey testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server.SshTestGitServer(String testUser, PublicKey testKey, Repository repository, KeyPair hostKey)
Creates a ssh git test server. -
Uses of NonNull in org.eclipse.jgit.lfs.internal
Methods in org.eclipse.jgit.lfs.internal with annotations of type NonNull Modifier and Type Method Description static HttpConnection
LfsConnectionFactory. getLfsContentConnection(Repository repo, Protocol.Action action, String method)
Create a connection for the specifiedProtocol.Action
. -
Uses of NonNull in org.eclipse.jgit.lib
Methods in org.eclipse.jgit.lib with annotations of type NonNull Modifier and Type Method Description abstract byte[]
ObjectBuilder. build()
Format this builder's state as a git object.abstract AttributesNodeProvider
Repository. createAttributesNodeProvider()
Create a newAttributesNodeProvider
.ObjectReachabilityChecker
ObjectReader. createObjectReachabilityChecker(ObjectWalk ow)
Create an object reachability checker that will use bitmaps if possible.ReachabilityChecker
ObjectReader. createReachabilityChecker(RevWalk rw)
Create a reachability checker that will use bitmaps if possible.Map<String,Ref>
RefDatabase. exactRef(String... refs)
Read the specified references.Set<ObjectId>
Repository. getAdditionalHaves()
Objects known to exist but not expressed byRepository.getAllRefs()
.abstract List<Ref>
RefDatabase. getAdditionalRefs()
Get the additional reference-like entities from the repository.Map<String,Ref>
Repository. getAllRefs()
Deprecated.usegetRefDatabase().getRefs()
instead.Map<AnyObjectId,Set<Ref>>
Repository. getAllRefsByPeeledObjectId()
Get a map with all objects referenced by a peeled ref.abstract StoredConfig
Repository. getConfig()
Get the configuration of this repository.Collection<String>
RefDatabase. getConflictingNames(String name)
Determine if a proposed reference cannot coexist with existing ones.Date
GpgSignatureVerifier.SignatureVerification. getCreationDate()
Charset
ObjectBuilder. getEncoding()
Retrieves the encoding that should be used for the message text.File
Repository. getIndexFile()
Get the index file location ornull
if repository isn't local.String
BaseRepositoryBuilder. getInitialBranch()
Get the initial branch of the new repository.protected String
Repository. getInitialBranch()
Get the initial branch name of a new repositoryRef
ObjectIdRef. getLeaf()
Traverse target references untilRef.isSymbolic()
is false.Ref
Ref. getLeaf()
Traverse target references untilRef.isSymbolic()
is false.Ref
SymbolicRef. getLeaf()
Traverse target references untilRef.isSymbolic()
is false.ListenerList
Repository. getListenerList()
Get listeners observing only events on this repository.String
GpgSignatureVerifier. getName()
Retrieves the name of this verifier.String
ObjectIdRef. getName()
What this ref is called within the repository.String
Ref. getName()
What this ref is called within the repository.String
SymbolicRef. getName()
What this ref is called within the repository.abstract ObjectDatabase
Repository. getObjectDatabase()
Get the object database which stores this repository's data.ObjectId
ObjectIdRef.PeeledTag. getPeeledObjectId()
abstract RefDatabase
Repository. getRefDatabase()
Get the reference database which stores the reference namespace.List<Ref>
RefDatabase. getRefs()
Returns all refs.abstract Map<String,Ref>
RefDatabase. getRefs(String prefix)
Deprecated.useRefDatabase.getRefsByPrefix(java.lang.String)
insteadList<Ref>
RefDatabase. getRefsByPrefix(String prefix)
Returns refs whose names start with a given prefix.List<Ref>
RefDatabase. getRefsByPrefix(String... prefixes)
Returns refs whose names start with one of the given prefixes.List<Ref>
RefDatabase. getRefsByPrefixWithExclusions(String include, Set<String> excludes)
Returns refs whose names start with a given prefix excluding all refs that start with one of the given prefixes.List<RefSpec>
DefaultTypedConfigGetter. getRefSpecs(Config config, String section, String subsection, String name)
List<RefSpec>
TypedConfigGetter. getRefSpecs(Config config, String section, String subsection, String name)
Set<String>
Repository. getRemoteNames()
Get the names of all known remotesRepositoryState
Repository. getRepositoryState()
Get the repository stateRef.Storage
ObjectIdRef. getStorage()
How was this ref obtained?Ref.Storage
Ref. getStorage()
How was this ref obtained?Ref.Storage
SymbolicRef. getStorage()
How was this ref obtained?Map<String,Ref>
Repository. getTags()
Deprecated.usegetRefDatabase().getRefsByPrefix(R_TAGS)
insteadRef
ObjectIdRef. getTarget()
Get the reference this reference points to, orthis
.Ref
Ref. getTarget()
Get the reference this reference points to, orthis
.Ref
SymbolicRef. getTarget()
Get the reference this reference points to, orthis
.Set<Ref>
RefDatabase. getTipsWithSha1(ObjectId id)
Returns all refs that resolve directly to the givenObjectId
.GpgSignatureVerifier.TrustLevel
GpgSignatureVerifier.SignatureVerification. getTrustLevel()
Obtains the trust level of the public key used to verify the signature.File
Repository. getWorkTree()
Get the root directory of the working tree, where files are checked out for viewing and editing.DirCache
Repository. lockDirCache()
Create a new in-core index representation, lock it, and read from disk.BatchRefUpdate
RefDatabase. newBatchUpdate()
Create a new batch update to attempt on this database.ObjectInserter
Repository. newObjectInserter()
Create a new inserter to create objects inRepository.getObjectDatabase()
.ObjectReader
Repository. newObjectReader()
Create a new reader to read objects fromRepository.getObjectDatabase()
.abstract RefRename
RefDatabase. newRename(String fromName, String toName)
Create a new update command to rename a reference.abstract RefUpdate
RefDatabase. newUpdate(String name, boolean detach)
Create a new update command to create, modify or delete a reference.ObjectLoader
Repository. open(AnyObjectId objectId)
Open an object from this repository.ObjectLoader
Repository. open(AnyObjectId objectId, int typeHint)
Open an object from this repository.abstract Ref
RefDatabase. peel(Ref ref)
Peel a possibly unpeeled reference by traversing the annotated tags.Ref
Repository. peel(Ref ref)
Deprecated.usegetRefDatabase().peel(ref)
instead.DirCache
Repository. readDirCache()
Create a new in-core index representation and read an index from disk.List<RebaseTodoLine>
Repository. readRebaseTodo(String path, boolean includeComments)
Read a file formatted like the git-rebase-todo file.static ObjectId
ObjectIdSerializer. readWithoutMarker(InputStream in)
Read a non-nullObjectId
from the stream.RefRename
Repository. renameRef(String fromRef, String toRef)
Create a command to rename a ref in this repositorystatic String
Repository. shortenRefName(String refName)
Get a shortened more user friendly ref namestatic String
Repository. stripWorkDir(File workDir, File file)
Strip work dir and return normalized repository path.String
ObjectIdRef. toString()
String
Repository. toString()
RefUpdate
Repository. updateRef(String ref)
Create a command to update, create or delete a ref in this repository.RefUpdate
Repository. updateRef(String ref, boolean detach)
Create a command to update, create or delete a ref in this repository.Method parameters in org.eclipse.jgit.lib with annotations of type NonNull Modifier and Type Method Description boolean
GpgObjectSigner. canLocateSigningKey(String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config)
Indicates if a signing key is available for the specified committer and/or signing key.abstract boolean
GpgSigner. canLocateSigningKey(String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider)
Indicates if a signing key is available for the specified committer and/or signing key.static void
RepositoryCache. close(Repository db)
Close and remove a repository from the cache.Path
Config. getPath(String section, String subsection, String name, FS fs, File resolveAgainst, Path defaultValue)
Parse a string value and treat it as a file path, replacing a ~/ prefix by the user's home directory.default Path
TypedConfigGetter. getPath(Config config, String section, String subsection, String name, FS fs, File resolveAgainst, Path defaultValue)
Parse a string value from a gitConfig
and treat it as a file path, replacing a ~/ prefix by the user's home directory.void
ObjectBuilder. setEncoding(Charset encoding)
Sets the encoding for the object message.abstract void
GpgSigner. sign(CommitBuilder commit, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider)
Signs the specified commit.abstract void
GpgSigner. sign(CommitBuilder commit, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider)
Signs the specified commit.void
GpgObjectSigner. signObject(ObjectBuilder object, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config)
Signs the specified object.void
GpgObjectSigner. signObject(ObjectBuilder object, String gpgSigningKey, PersonIdent committer, CredentialsProvider credentialsProvider, GpgConfig config)
Signs the specified object.GpgSignatureVerifier.SignatureVerification
GpgSignatureVerifier. verifySignature(RevObject object, GpgConfig config)
Verifies the signature on a signed commit or tag.GpgSignatureVerifier.SignatureVerification
GpgSignatureVerifier. verifySignature(RevObject object, GpgConfig config)
Verifies the signature on a signed commit or tag.static void
ObjectIdSerializer. writeWithoutMarker(OutputStream out, AnyObjectId id)
Write a non-nullObjectId
to the stream.Constructor parameters in org.eclipse.jgit.lib with annotations of type NonNull Constructor Description GpgSignature(byte[] signature)
Creates a new instance with the specified signatureObjectIdRef(Ref.Storage st, String name, ObjectId id, long updateIndex)
Create a new ref pairing.ObjectIdRef(Ref.Storage st, String name, ObjectId id, long updateIndex)
Create a new ref pairing.PeeledNonTag(Ref.Storage st, String name, ObjectId id)
Create a new ref pairing.PeeledNonTag(Ref.Storage st, String name, ObjectId id)
Create a new ref pairing.PeeledNonTag(Ref.Storage st, String name, ObjectId id, long updateIndex)
Create a new ref pairing with update index.PeeledNonTag(Ref.Storage st, String name, ObjectId id, long updateIndex)
Create a new ref pairing with update index.PeeledTag(Ref.Storage st, String name, ObjectId id, ObjectId p)
Create a new ref pairing.PeeledTag(Ref.Storage st, String name, ObjectId id, ObjectId p)
Create a new ref pairing.PeeledTag(Ref.Storage st, String name, ObjectId id, ObjectId p)
Create a new ref pairing.PeeledTag(Ref.Storage st, String name, ObjectId id, ObjectId p, long updateIndex)
Create a new ref pairing with update index.PeeledTag(Ref.Storage st, String name, ObjectId id, ObjectId p, long updateIndex)
Create a new ref pairing with update index.PeeledTag(Ref.Storage st, String name, ObjectId id, ObjectId p, long updateIndex)
Create a new ref pairing with update index.SymbolicRef(String refName, Ref target)
Create a new ref pairing.SymbolicRef(String refName, Ref target)
Create a new ref pairing.SymbolicRef(String refName, Ref target, long updateIndex)
Create a new ref pairing.SymbolicRef(String refName, Ref target, long updateIndex)
Create a new ref pairing.Unpeeled(Ref.Storage st, String name, ObjectId id)
Create a new ref pairing.Unpeeled(Ref.Storage st, String name, ObjectId id)
Create a new ref pairing.Unpeeled(Ref.Storage st, String name, ObjectId id, long updateIndex)
Create a new ref pairing with update index.Unpeeled(Ref.Storage st, String name, ObjectId id, long updateIndex)
Create a new ref pairing with update index. -
Uses of NonNull in org.eclipse.jgit.revwalk
Methods in org.eclipse.jgit.revwalk with annotations of type NonNull Modifier and Type Method Description RevFilter
RevWalk. getRevFilter()
Get the currently configured commit filter.TreeFilter
RevWalk. getTreeFilter()
Get the tree filter used to simplify commits by modified paths.RevObject
RevWalk. lookupAny(AnyObjectId id, int type)
Locate a reference to any object without loading it.RevBlob
RevWalk. lookupBlob(AnyObjectId id)
Locate a reference to a blob without loading it.RevCommit
RevWalk. lookupCommit(AnyObjectId id)
Locate a reference to a commit without loading it.RevTag
RevWalk. lookupTag(AnyObjectId id)
Locate a reference to a tag without loading it.RevTree
RevWalk. lookupTree(AnyObjectId id)
Locate a reference to a tree without loading it.RevObject
RevWalk. parseAny(AnyObjectId id)
Locate a reference to any object and immediately parse its headers.RevCommit
RevWalk. parseCommit(AnyObjectId id)
Locate a reference to a commit and immediately parse its content.RevTag
RevWalk. parseTag(AnyObjectId id)
Locate a reference to an annotated tag and immediately parse its content.RevTree
RevWalk. parseTree(AnyObjectId id)
Locate a reference to a tree. -
Uses of NonNull in org.eclipse.jgit.transport
Methods in org.eclipse.jgit.transport with annotations of type NonNull Modifier and Type Method Description List<String>
HttpConfig. getExtraHeaders()
Get the "http.extraHeader" settingHttpConnectionFactory
TransportHttp. getHttpConnectionFactory()
Retrieves theHttpConnectionFactory
used by thisTransportHttp
instance.Map<String,List<String>>
SshConfigStore.HostConfig. getMultiValuedOptions()
Retrieves an unmodifiable map of all multi- or list-valued options, with case-insensitive lookup by keys.Map<String,String>
SshConfigStore.HostConfig. getOptions()
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.List<String>
FetchV2Request. getServerOptions()
Options received in server-option lines.List<String>
LsRefsV2Request. getServerOptions()
Get application-specific options provided by the client using --server-option.List<String>
FetchV2Request. getWantedRefs()
SshConfigStore.HostConfig
SshConfigStore. lookup(String hostName, int port, String userName)
Locate the configuration for a specific host request.Method parameters in org.eclipse.jgit.transport with annotations of type NonNull Modifier and Type Method Description LsRefsV2Request.Builder
LsRefsV2Request.Builder. addServerOption(String value)
Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.static ReceiveCommand
ReceiveCommand. link(String oldTarget, String newTarget, String name)
Create a command to switch a symbolic reference's target.static ReceiveCommand
ReceiveCommand. link(String oldTarget, String newTarget, String name)
Create a command to switch a symbolic reference's target.static ReceiveCommand
ReceiveCommand. link(ObjectId oldId, String newTarget, String name)
Create a command to switch a reference from object to symbolic.static ReceiveCommand
ReceiveCommand. link(ObjectId oldId, String newTarget, String name)
Create a command to switch a reference from object to symbolic.static ReceiveCommand
ReceiveCommand. link(ObjectId oldId, String newTarget, String name)
Create a command to switch a reference from object to symbolic.SshConfigStore.HostConfig
SshConfigStore. lookup(String hostName, int port, String userName)
Locate the configuration for a specific host request.void
Transport. setFilterSpec(FilterSpec filter)
void
TransportHttp. setHttpConnectionFactory(HttpConnectionFactory customFactory)
Sets theHttpConnectionFactory
to be used by thisTransportHttp
instance.static ReceiveCommand
ReceiveCommand. unlink(String oldTarget, ObjectId newId, String name)
Create a command to switch a reference from symbolic to object.static ReceiveCommand
ReceiveCommand. unlink(String oldTarget, ObjectId newId, String name)
Create a command to switch a reference from symbolic to object.static ReceiveCommand
ReceiveCommand. unlink(String oldTarget, ObjectId newId, String name)
Create a command to switch a reference from symbolic to object. -
Uses of NonNull in org.eclipse.jgit.transport.http
Methods in org.eclipse.jgit.transport.http with annotations of type NonNull Modifier and Type Method Description HttpConnection
HttpConnectionFactory2.GitSession. configure(HttpConnection connection, boolean sslVerify)
Configure a just createdHttpConnection
.HttpConnectionFactory2.GitSession
HttpConnectionFactory2. newSession()
Creates a newHttpConnectionFactory2.GitSession
instance that can be used with connections created by thisHttpConnectionFactory
instance.Method parameters in org.eclipse.jgit.transport.http with annotations of type NonNull Modifier and Type Method Description HttpConnection
HttpConnectionFactory2.GitSession. configure(HttpConnection connection, boolean sslVerify)
Configure a just createdHttpConnection
.String
HttpConnection. getHeaderField(String name)
Get header field.String
JDKHttpConnection. getHeaderField(String name)
Get header field.List<String>
HttpConnection. getHeaderFields(String name)
Get all values of given header field.List<String>
JDKHttpConnection. getHeaderFields(String name)
-
Uses of NonNull in org.eclipse.jgit.transport.http.apache
Method parameters in org.eclipse.jgit.transport.http.apache with annotations of type NonNull Modifier and Type Method Description String
HttpClientConnection. getHeaderField(String name)
Get header field.List<String>
HttpClientConnection. getHeaderFields(String name)
-
Uses of NonNull in org.eclipse.jgit.transport.sshd
Methods in org.eclipse.jgit.transport.sshd with annotations of type NonNull Modifier and Type Method Description protected KeyPasswordProvider
SshdSessionFactory. createKeyPasswordProvider(CredentialsProvider provider)
Creates aKeyPasswordProvider
for a new session.protected ServerKeyDatabase
SshdSessionFactory. createServerKeyDatabase(File homeDir, File sshDir)
Creates aServerKeyDatabase
to verify server host keys.protected List<Path>
SshdSessionFactory. getDefaultIdentities(File sshDir)
Gets a list of default identities, i.e., private key files that shall always be tried for public key authentication.protected Iterable<KeyPair>
SshdSessionFactory. getDefaultKeys(File sshDir)
Determines the default keys.protected List<Path>
SshdSessionFactory. getDefaultKnownHostsFiles(File sshDir)
Gets the list of default user known hosts files.FtpChannel
SshdSession. getFtpChannel()
Obtain anFtpChannel
to perform SFTP operations in thisSshdSession
.Proxy
ProxyData. getProxy()
Obtains the remoteInetSocketAddress
of the proxy to connect to.protected ServerKeyDatabase
SshdSessionFactory. getServerKeyDatabase(File homeDir, File sshDir)
Obtains aServerKeyDatabase
to verify server host keys.ServerKeyDatabase.Configuration.StrictHostKeyChecking
ServerKeyDatabase.Configuration. getStrictHostKeyChecking()
Obtains the value of the "StrictHostKeyChecking" ssh config.String
ServerKeyDatabase.Configuration. getUsername()
Obtains the user name used in the connection attempt.List<PublicKey>
ServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
Retrieves all known host keys for the given addresses.Method parameters in org.eclipse.jgit.transport.sshd with annotations of type NonNull Modifier and Type Method Description boolean
ServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
Determines whether to accept a received server host key.boolean
ServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
Determines whether to accept a received server host key.boolean
ServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
Determines whether to accept a received server host key.boolean
ServerKeyDatabase. accept(String connectAddress, InetSocketAddress remoteAddress, PublicKey serverKey, ServerKeyDatabase.Configuration config, CredentialsProvider provider)
Determines whether to accept a received server host key.void
SshdSession. addCloseListener(SessionCloseListener listener)
Adds aSessionCloseListener
to this session.SshConfigStore
SshdSessionFactoryBuilder.ConfigStoreFactory. create(File homeDir, File configFile, String localUserName)
Creates aSshConfigStore
.protected ServerKeyDatabase
SshdSessionFactory. createServerKeyDatabase(File homeDir, File sshDir)
Creates aServerKeyDatabase
to verify server host keys.protected ServerKeyDatabase
SshdSessionFactory. createServerKeyDatabase(File homeDir, File sshDir)
Creates aServerKeyDatabase
to verify server host keys.protected SshConfigStore
SshdSessionFactory. createSshConfigStore(File homeDir, File configFile, String localUserName)
Obtains aSshConfigStore
, ornull
if not SSH config is to be used.protected List<Path>
SshdSessionFactory. getDefaultIdentities(File sshDir)
Gets a list of default identities, i.e., private key files that shall always be tried for public key authentication.protected Iterable<KeyPair>
SshdSessionFactory. getDefaultKeys(File sshDir)
Determines the default keys.protected List<Path>
SshdSessionFactory. getDefaultKnownHostsFiles(File sshDir)
Gets the list of default user known hosts files.protected char[]
IdentityPasswordProvider. getPassword(URIish uri, int attempt, IdentityPasswordProvider.State state)
Retrieves a password to decrypt a private key.protected ServerKeyDatabase
SshdSessionFactory. getServerKeyDatabase(File homeDir, File sshDir)
Obtains aServerKeyDatabase
to verify server host keys.protected ServerKeyDatabase
SshdSessionFactory. getServerKeyDatabase(File homeDir, File sshDir)
Obtains aServerKeyDatabase
to verify server host keys.protected File
SshdSessionFactory. getSshConfig(File sshDir)
Determines the ssh config file.List<PublicKey>
ServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
Retrieves all known host keys for the given addresses.List<PublicKey>
ServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
Retrieves all known host keys for the given addresses.List<PublicKey>
ServerKeyDatabase. lookup(String connectAddress, InetSocketAddress remoteAddress, ServerKeyDatabase.Configuration config)
Retrieves all known host keys for the given addresses.void
SshdSession. removeCloseListener(SessionCloseListener listener)
Removes the givenlistener
; has no effect if the listener is not currently registered with this session.void
SshdSessionFactory. setHomeDirectory(File homeDir)
Set a global directory to use as the user's home directoryvoid
SshdSessionFactory. setSshDirectory(File sshDir)
Set a global directory to use as the .ssh directoryConstructor parameters in org.eclipse.jgit.transport.sshd with annotations of type NonNull Constructor Description ProxyData(Proxy proxy)
Creates a newProxyData
instance without user name or password.ProxyData(Proxy proxy, String proxyUser, char[] proxyPassword)
Creates a newProxyData
instance. -
Uses of NonNull in org.eclipse.jgit.util
Methods in org.eclipse.jgit.util with annotations of type NonNull Modifier and Type Method Description Duration
FS.FileStoreAttributes. getFsTimestampResolution()
Method parameters in org.eclipse.jgit.util with annotations of type NonNull Modifier and Type Method Description static FS.FileStoreAttributes
FS. getFileStoreAttributes(Path dir)
Get cached FileStore attributes, if not yet available measure them using a probe file under the given directory.V
SimpleLruCache. put(K key, V value)
Maps the specified key to the specified value in this cache.V
SimpleLruCache. put(K key, V value)
Maps the specified key to the specified value in this cache.Constructor parameters in org.eclipse.jgit.util with annotations of type NonNull Constructor Description FileStoreAttributes(Duration fsTimestampResolution)
Construct a FileStoreAttributeCache entry for the given filesystem timestamp resolution
-