Uses of Annotation Interface
org.eclipse.jgit.annotations.NonNull
Packages that use NonNull
Package
Description
High-level API commands (the porcelain of JGit).
Reading and editing the directory cache (index).
Events and listener interfaces.
Ignore rule parser/matcher (for .gitignore entries).
Distributed file system based repository storage.
File based repository storage.
Reading/writing Git pack files.
Core API for repository, config, refs, object database.
Content and commit history merge algorithms.
Walking revision graphs (commit history).
Transport (fetch/push) for different protocols.
Utility classes.
Utility classes for IO (streams).
-
Uses of NonNull in org.eclipse.jgit.api
Methods in org.eclipse.jgit.api with annotations of type NonNullModifier and TypeMethodDescriptionVerifySignatureCommand.call()
Resolves
all names added to the command to git objects and verifies their signature.RebaseCommand.InteractiveHandler2.editCommitMessage
(String message, CommitConfig.CleanupMode mode, char commentChar) Callback API for editing a commit message on REWORD or SQUASH.RebaseCommand.InteractiveHandler2.ModifyResult.getCleanupMode()
Tells how the message returned byRebaseCommand.InteractiveHandler2.ModifyResult.getMessage()
should be cleaned.RebaseCommand.InteractiveHandler2.ModifyResult.getMessage()
Retrieves the new commit message.Method parameters in org.eclipse.jgit.api with annotations of type NonNullModifier and TypeMethodDescriptionCloneCommand.addShallowExclude
(String shallowExclude) Creates a shallow clone with a history, excluding commits reachable from a specified remote branch or tag.CloneCommand.addShallowExclude
(ObjectId shallowExclude) Creates a shallow clone with a history, excluding commits reachable from a specified remote branch or tag.FetchCommand.addShallowExclude
(String shallowExclude) Deepens or shortens the history of a shallow repository to exclude commits reachable from a specified remote branch or tag.FetchCommand.addShallowExclude
(ObjectId shallowExclude) Creates a shallow clone with a history, excluding commits reachable from a specified remote branch or tag.RebaseCommand.InteractiveHandler2.editCommitMessage
(String message, CommitConfig.CleanupMode mode, char commentChar) Callback API for editing a commit message on REWORD or SQUASH.RebaseCommand.InteractiveHandler2.editCommitMessage
(String message, CommitConfig.CleanupMode mode, char commentChar) Callback API for editing a commit message on REWORD or SQUASH.CommitCommand.setCleanupMode
(CommitConfig.CleanupMode mode) Sets theCommitConfig.CleanupMode
to apply to the commit message.VerifySignatureCommand.setMode
(VerifySignatureCommand.VerifyMode mode) Sets the mode of operation for this command.CloneCommand.setShallowSince
(Instant shallowSince) Creates a shallow clone with a history after the specified time.CloneCommand.setShallowSince
(OffsetDateTime shallowSince) Creates a shallow clone with a history after the specified time.FetchCommand.setShallowSince
(Instant shallowSince) Deepens or shortens the history of a shallow repository to include all reachable commits after a specified time.FetchCommand.setShallowSince
(OffsetDateTime shallowSince) Deepens or shortens the history of a shallow repository to include all reachable commits after a specified time. -
Uses of NonNull in org.eclipse.jgit.dircache
Constructor parameters in org.eclipse.jgit.dircache with annotations of type NonNullModifierConstructorDescriptionCheckout
(Repository repo) Creates a newCheckout
for checking out from the given repository.Checkout
(Repository repo, WorkingTreeOptions options) Creates a newCheckout
for checking out from the given repository. -
Uses of NonNull in org.eclipse.jgit.events
Methods in org.eclipse.jgit.events with annotations of type NonNullModifier and TypeMethodDescriptionWorkingTreeModifiedEvent.getDeleted()
Retrieves theCollection
of repository-relative paths of files that were deleted.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 NonNullModifier and TypeMethodDescriptionbyte[]
RepoCommand.RemoteFile.getContents()
Contents of the file.RepoCommand.RemoteFile.getFileMode()
Get file modeManifestParser.getFilteredProjects()
Getter for filterdProjects.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 NonNullModifierConstructorDescriptionRemoteFile
(byte[] contents, FileMode fileMode) RemoteFile
(byte[] contents, FileMode fileMode) -
Uses of NonNull in org.eclipse.jgit.ignore
Methods in org.eclipse.jgit.ignore with annotations of type NonNullModifier and TypeMethodDescriptionstatic 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 NonNullModifier and TypeMethodDescriptionstatic IMatcher
IMatcher.createPathMatcher
(String pattern, boolean dirOnly) Creates a path matcher for the given pattern. -
Uses of NonNull in org.eclipse.jgit.internal.storage.commitgraph
Method parameters in org.eclipse.jgit.internal.storage.commitgraph with annotations of type NonNullModifier and TypeMethodDescriptionstatic GraphCommits
GraphCommits.fromWalk
(ProgressMonitor pm, Set<? extends ObjectId> wants, RevWalk walk) Prepare and create the commits forCommitGraphWriter
from the RevWalk.static GraphCommits
GraphCommits.fromWalk
(ProgressMonitor pm, Set<? extends ObjectId> wants, RevWalk walk) Prepare and create the commits forCommitGraphWriter
from the RevWalk.CommitGraphWriter.write
(ProgressMonitor monitor, OutputStream commitGraphStream) Write commit-graph to the supplied stream.CommitGraphWriter.write
(ProgressMonitor monitor, OutputStream commitGraphStream) Write commit-graph to the supplied stream.Constructor parameters in org.eclipse.jgit.internal.storage.commitgraph with annotations of type NonNullModifierConstructorDescriptionCommitGraphWriter
(GraphCommits graphCommits) Create commit-graph writer for these commits.CommitGraphWriter
(GraphCommits graphCommits, boolean generateChangedPathFilters) Create commit-graph writer for these commits. -
Uses of NonNull in org.eclipse.jgit.internal.storage.dfs
Methods in org.eclipse.jgit.internal.storage.dfs with annotations of type NonNullMethod parameters in org.eclipse.jgit.internal.storage.dfs with annotations of type NonNullModifier and TypeMethodDescriptionDfsPackDescription.setPackSource
(DfsObjDatabase.PackSource source) Set the source of the pack.Constructor parameters in org.eclipse.jgit.internal.storage.dfs with annotations of type NonNullModifierConstructorDescriptionDfsPackDescription
(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 NonNullModifier and TypeMethodDescriptionFileRepository.getReflogReader
(Ref ref) FileReftableDatabase.newBatchUpdate()
Method parameters in org.eclipse.jgit.internal.storage.file with annotations of type NonNullModifier and TypeMethodDescriptionFileRepository.getReflogReader
(Ref ref) 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 NonNullModifier and TypeMethodDescriptionvoid
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) Set filter specConstructor parameters in org.eclipse.jgit.internal.storage.pack with annotations of type NonNullModifierConstructorDescriptionPackfileUriConfig
(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 NonNullModifier and TypeMethodDescriptionstatic FirstCommand
Parse the first line of a receive-pack request.FirstCommand.getCapabilities()
Get capabilitiesFirstCommand.getLine()
Get line -
Uses of NonNull in org.eclipse.jgit.internal.transport.ssh
Methods in org.eclipse.jgit.internal.transport.ssh with annotations of type NonNullModifier and TypeMethodDescriptionOpenSshConfigFile.HostEntry.getMultiValuedOptions()
Retrieves an unmodifiable map of all multi-valued options, with case-insensitive lookup by keys.OpenSshConfigFile.HostEntry.getOptions()
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.Locate the configuration for a specific host request.OpenSshConfigFile.lookupDefault
(String hostName, int port, String userName) Method parameters in org.eclipse.jgit.internal.transport.ssh with annotations of type NonNullModifier and TypeMethodDescriptionLocate the configuration for a specific host request.OpenSshConfigFile.lookupDefault
(String hostName, int port, String userName) Constructor parameters in org.eclipse.jgit.internal.transport.ssh with annotations of type NonNullModifierConstructorDescriptionOpenSshConfigFile
(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.lib
Methods in org.eclipse.jgit.lib with annotations of type NonNullModifier and TypeMethodDescriptionabstract byte[]
ObjectBuilder.build()
Format this builder's state as a git object.abstract AttributesNodeProvider
Repository.createAttributesNodeProvider()
Create a newAttributesNodeProvider
.ObjectReader.createObjectReachabilityChecker
(ObjectWalk ow) Create an object reachability checker that will use bitmaps if possible.ObjectReader.createReachabilityChecker
(RevWalk rw) Create a reachability checker that will use bitmaps if possible.Read the specified references.Repository.getAdditionalHaves()
Objects known to exist but not expressed byRepository.getAllRefs()
.RefDatabase.getAdditionalRefs()
Get the additional reference-like entities from the repository.Repository.getAllRefs()
Deprecated.Map<AnyObjectId,
Set<Ref>> Repository.getAllRefsByPeeledObjectId()
Get a map with all objects referenced by a peeled ref.CommitConfig.getCleanupMode()
Retrieves theCommitConfig.CleanupMode
as given by git configcommit.cleanup
.abstract StoredConfig
Repository.getConfig()
Get the configuration of this repository.RefDatabase.getConflictingNames
(String name) Determine if a proposed reference cannot coexist with existing ones.GpgSignatureVerifier.SignatureVerification.getCreationDate()
ObjectBuilder.getEncoding()
Retrieves the encoding that should be used for the message text.Repository.getIndexFile()
Get the index file location ornull
if repository isn't local.BaseRepositoryBuilder.getInitialBranch()
Get the initial branch of the new repository.protected String
Repository.getInitialBranch()
Get the initial branch name of a new repositoryObjectIdRef.getLeaf()
Ref.getLeaf()
Traverse target references untilRef.isSymbolic()
is false.SymbolicRef.getLeaf()
Repository.getListenerList()
Get listeners observing only events on this repository.FileModeCache.CacheItem.getMode()
Retrieves the cachedFileMode
.GpgSignatureVerifier.getName()
Retrieves the name of this verifier.ObjectIdRef.getName()
Ref.getName()
What this ref is called within the repository.SymbolicRef.getName()
abstract ObjectDatabase
Repository.getObjectDatabase()
Get the object database which stores this repository's data.ObjectIdRef.PeeledTag.getPeeledObjectId()
abstract RefDatabase
Repository.getRefDatabase()
Get the reference database which stores the reference namespace.RefDatabase.getRefs()
Returns all refs.Deprecated.useRefDatabase.getRefsByPrefix(java.lang.String)
insteadRefDatabase.getRefsByPrefix
(String prefix) Returns refs whose names start with a given prefix.RefDatabase.getRefsByPrefix
(String... prefixes) Returns refs whose names start with one of the given prefixes.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.DefaultTypedConfigGetter.getRefSpecs
(Config config, String section, String subsection, String name) TypedConfigGetter.getRefSpecs
(Config config, String section, String subsection, String name) Repository.getRemoteNames()
Get the names of all known remotesFileModeCache.getRepository()
Retrieves theRepository
.Repository.getRepositoryState()
Get the repository stateFileModeCache.getRoot()
Obtains theFileModeCache.CacheItem
for the working tree root.ObjectIdRef.getStorage()
Ref.getStorage()
How was this ref obtained?SymbolicRef.getStorage()
Repository.getTags()
Deprecated.usegetRefDatabase().getRefsByPrefix(R_TAGS)
insteadObjectIdRef.getTarget()
Ref.getTarget()
Get the reference this reference points to, orthis
.SymbolicRef.getTarget()
RefDatabase.getTipsWithSha1
(ObjectId id) Returns all refs that resolve directly to the givenObjectId
.GpgSignatureVerifier.SignatureVerification.getTrustLevel()
Obtains the trust level of the public key used to verify the signature.Repository.getWorkTree()
Get the root directory of the working tree, where files are checked out for viewing and editing.Repository.lockDirCache()
Create a new in-core index representation, lock it, and read from disk.RefDatabase.newBatchUpdate()
Create a new batch update to attempt on this database.Repository.newObjectInserter()
Create a new inserter to create objects inRepository.getObjectDatabase()
.Repository.newObjectReader()
Create a new reader to read objects fromRepository.getObjectDatabase()
.abstract RefRename
Create a new update command to rename a reference.abstract RefUpdate
Create a new update command to create, modify or delete a reference.Repository.open
(AnyObjectId objectId) Open an object from this repository.Repository.open
(AnyObjectId objectId, int typeHint) Open an object from this repository.abstract Ref
Peel a possibly unpeeled reference by traversing the annotated tags.Deprecated.usegetRefDatabase().peel(ref)
instead.Repository.readDirCache()
Create a new in-core index representation and read an index from disk.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.Create a command to rename a ref in this repositoryCommitConfig.resolve
(CommitConfig.CleanupMode mode, boolean defaultStrip) Computes a non-defaultCommitConfig.CleanupMode
from the given mode and the git config.static 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.ObjectIdRef.toString()
Repository.toString()
Create a command to update, create or delete a ref in this repository.Create a command to update, create or delete a ref in this repository.Method parameters in org.eclipse.jgit.lib with annotations of type NonNullModifier and TypeMethodDescriptionboolean
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 String
CommitConfig.cleanText
(String text, CommitConfig.CleanupMode mode, char commentChar) Processes a text according to the givenCommitConfig.CleanupMode
.static String
CommitConfig.cleanText
(String text, CommitConfig.CleanupMode mode, char commentChar) Processes a text according to the givenCommitConfig.CleanupMode
.static void
RepositoryCache.close
(Repository db) Close and remove a repository from the cache.CommitConfig.getCommitTemplateContent
(Repository repository) Get the content to the commit template as defined incommit.template
.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.Repository.getReflogReader
(Ref ref) Get the reflog reader.Inserts a new cachedFileMode
as an immediate child of thisFileModeCache.CacheItem
.CommitConfig.resolve
(CommitConfig.CleanupMode mode, boolean defaultStrip) Computes a non-defaultCommitConfig.CleanupMode
from the given mode and the git config.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.verifySignature
(RevObject object, GpgConfig config) Verifies the signature on a signed commit or tag.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 NonNullModifierConstructorDescriptionCreates a newFileModeCache.CacheItem
.FileModeCache
(Repository repo) Creates a newFileModeCache
for aRepository
.GpgSignature
(byte[] signature) Creates a new instance with the specified signatureprotected
ObjectIdRef
(Ref.Storage st, String name, ObjectId id, long updateIndex) Create a new ref pairing.protected
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.merge
Methods in org.eclipse.jgit.merge with annotations of type NonNullModifier and TypeMethodDescriptionMergeAlgorithm.getContentMergeStrategy()
Retrieves theContentMergeStrategy
.ResolveMerger.getContentMergeStrategy()
Retrieves the content merge strategy for content conflicts. -
Uses of NonNull in org.eclipse.jgit.revwalk
Methods in org.eclipse.jgit.revwalk with annotations of type NonNullModifier and TypeMethodDescriptionRevWalk.getRevFilter()
Get the currently configured commit filter.RevWalk.getTreeFilter()
Get the tree filter used to simplify commits by modified paths.RevWalk.lookupAny
(AnyObjectId id, int type) Locate a reference to any object without loading it.RevWalk.lookupBlob
(AnyObjectId id) Locate a reference to a blob without loading it.RevWalk.lookupCommit
(AnyObjectId id) Locate a reference to a commit without loading it.protected RevCommit
RevWalk.lookupCommit
(AnyObjectId id, int graphPos) This method is intended to be invoked only byRevCommitCG
, in order to give commit the correct graphPosition before accessing the commit-graph.RevWalk.lookupTag
(AnyObjectId id) Locate a reference to a tag without loading it.RevWalk.lookupTree
(AnyObjectId id) Locate a reference to a tree without loading it.RevWalk.parseAny
(AnyObjectId id) Locate a reference to any object and immediately parse its headers.RevWalk.parseCommit
(AnyObjectId id) Locate a reference to a commit and immediately parse its content.RevWalk.parseTag
(AnyObjectId id) Locate a reference to an annotated tag and immediately parse its content.RevWalk.parseTree
(AnyObjectId id) Locate a reference to a tree. -
Uses of NonNull in org.eclipse.jgit.storage.file
Constructor parameters in org.eclipse.jgit.storage.file with annotations of type NonNullModifierConstructorDescriptionUserConfigFile
(Config parent, File config, File xdgConfig, FS fileSystem) Creates a newUserConfigFile
.UserConfigFile
(Config parent, File config, File xdgConfig, FS fileSystem) Creates a newUserConfigFile
.UserConfigFile
(Config parent, File config, File xdgConfig, FS fileSystem) Creates a newUserConfigFile
. -
Uses of NonNull in org.eclipse.jgit.transport
Methods in org.eclipse.jgit.transport with annotations of type NonNullModifier and TypeMethodDescriptionHttpConfig.getExtraHeaders()
Get the "http.extraHeader" settingTransportHttp.getHttpConnectionFactory()
Retrieves theHttpConnectionFactory
used by thisTransportHttp
instance.SshConfigStore.HostConfig.getMultiValuedOptions()
Retrieves an unmodifiable map of all multi- or list-valued options, with case-insensitive lookup by keys.SshConfigStore.HostConfig.getOptions()
Retrieves an unmodifiable map of all single-valued options, with case-insensitive lookup by keys.FetchV2Request.getServerOptions()
Options received in server-option lines.LsRefsV2Request.getServerOptions()
Get application-specific options provided by the client using --server-option.FetchV2Request.getWantedRefs()
Get list of references received in "want-ref" linesLocate the configuration for a specific host request.SshConfigStore.lookupDefault
(String hostName, int port, String userName) Locate the configuration for a specific host request and if the configuration has no values forSshConstants.HOST_NAME
,SshConstants.PORT
,SshConstants.USER
, orSshConstants.CONNECTION_ATTEMPTS
, fill those values with defaults from the arguments: Description of arguments ssh config key value from argumentHostName
hostName
Port
port > 0 ? port : 22
User
userName
ConnectionAttempts
1
Method parameters in org.eclipse.jgit.transport with annotations of type NonNullModifier and TypeMethodDescriptionLsRefsV2Request.Builder.addServerOption
(String value) Records an application-specific option supplied in a server-option line, for later retrieval withLsRefsV2Request.getServerOptions()
.static ReceiveCommand
Create a command to switch a symbolic reference's target.static ReceiveCommand
Create a command to switch a symbolic reference's target.static ReceiveCommand
Create a command to switch a reference from object to symbolic.static ReceiveCommand
Create a command to switch a reference from object to symbolic.static ReceiveCommand
Create a command to switch a reference from object to symbolic.Locate the configuration for a specific host request.SshConfigStore.lookupDefault
(String hostName, int port, String userName) Locate the configuration for a specific host request and if the configuration has no values forSshConstants.HOST_NAME
,SshConstants.PORT
,SshConstants.USER
, orSshConstants.CONNECTION_ATTEMPTS
, fill those values with defaults from the arguments: Description of arguments ssh config key value from argumentHostName
hostName
Port
port > 0 ? port : 22
User
userName
ConnectionAttempts
1
final void
Transport.setDeepenNots
(List<String> deepenNots) Deepen or shorten the history of a shallow repository to exclude commits reachable from a specified remote branch or tag.final void
Transport.setDeepenSince
(Instant deepenSince) Deepen or shorten the history of a shallow repository to include all reachable commits after a specified time.final void
Transport.setFilterSpec
(FilterSpec filter) Set filter specvoid
TransportHttp.setHttpConnectionFactory
(HttpConnectionFactory customFactory) Sets theHttpConnectionFactory
to be used by thisTransportHttp
instance.static ReceiveCommand
Create a command to switch a reference from symbolic to object.static ReceiveCommand
Create a command to switch a reference from symbolic to object.static ReceiveCommand
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 NonNullModifier and TypeMethodDescriptionHttpConnectionFactory2.GitSession.configure
(HttpConnection connection, boolean sslVerify) Configure a just createdHttpConnection
.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 NonNullModifier and TypeMethodDescriptionHttpConnectionFactory2.GitSession.configure
(HttpConnection connection, boolean sslVerify) Configure a just createdHttpConnection
.HttpConnection.getHeaderField
(String name) Get header field.JDKHttpConnection.getHeaderField
(String name) HttpConnection.getHeaderFields
(String name) Get all values of given header field.JDKHttpConnection.getHeaderFields
(String name) -
Uses of NonNull in org.eclipse.jgit.util
Methods in org.eclipse.jgit.util with annotations of type NonNullModifier and TypeMethodDescriptionstatic String
StringUtils.commonPrefix
(String... strings) Compares Strings and returns the initial sequence of characters that is common to all of them.FS.FileStoreAttributes.getFsTimestampResolution()
Get the measured filesystem timestamp resolutionMethod parameters in org.eclipse.jgit.util with annotations of type NonNullModifier and TypeMethodDescriptionstatic FS.FileStoreAttributes
FS.getFileStoreAttributes
(Path dir) Get cached FileStore attributes, if not yet available measure them using a probe file under the given directory.static int
StringUtils.parseIntWithSuffix
(String value, boolean positiveOnly) Parses a number with optional case-insensitive suffix 'k', 'm', or 'g' indicating KiB, MiB, and GiB, respectively.static long
StringUtils.parseLongWithSuffix
(String value, boolean positiveOnly) Parses a number with optional case-insensitive suffix 'k', 'm', or 'g' indicating KiB, MiB, and GiB, respectively.Maps the specified key to the specified value in this cache.Maps the specified key to the specified value in this cache.Constructor parameters in org.eclipse.jgit.util with annotations of type NonNullModifierConstructorDescriptionFileStoreAttributes
(Duration fsTimestampResolution) Construct a FileStoreAttributeCache entry for the given filesystem timestamp resolution -
Uses of NonNull in org.eclipse.jgit.util.io
Constructor parameters in org.eclipse.jgit.util.io with annotations of type NonNull
getRefDatabase().getRefs()
instead.