Uses of Class
org.eclipse.jgit.lib.Repository
Packages that use Repository
Package
Description
High-level API commands (the porcelain of JGit).
Support for reading .gitattributes.
Computing blame/annotate information of files.
Comparing file contents by computing diffs.
Reading and editing the directory cache (index).
Events and listener interfaces.
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.
Git notes processing (for commits, etc).
Patch file parser and data structure.
Building/rendering revision graphs.
Walking revision graphs (commit history).
Git submodule support.
Transport (fetch/push) for different protocols.
Server-side resolver for locating repositories by URLs.
Walking and comparing directory/file trees (of commits, file system).
Utility classes.
-
Uses of Repository in org.eclipse.jgit.api
Fields in org.eclipse.jgit.api declared as RepositoryModifier and TypeFieldDescriptionprotected final RepositoryGitCommand.repoThe repository this command is working withMethods in org.eclipse.jgit.api that return RepositoryModifier and TypeMethodDescriptionSubmoduleAddCommand.call()Git.getRepository()Get repositoryGitCommand.getRepository()Get repository this command is working onMethods in org.eclipse.jgit.api with parameters of type RepositoryModifier and TypeMethodDescriptionprotected StringSubmoduleSyncCommand.getHeadBranch(Repository subRepo) Get branch that HEAD currently points tostatic GitGit.wrap(Repository repo) Wrap repositoryConstructors in org.eclipse.jgit.api with parameters of type RepositoryModifierConstructorDescriptionAddCommand(Repository repo) Constructor for AddCommandprotectedAddNoteCommand(Repository repo) Constructor for AddNoteCommandArchiveCommand(Repository repo) Constructor for ArchiveCommandBlameCommand(Repository repo) Constructor for BlameCommandprotectedCheckoutCommand(Repository repo) Constructor for CheckoutCommandprotectedCherryPickCommand(Repository repo) Constructor for CherryPickCommandprotectedCleanCommand(Repository repo) Constructor for CleanCommandprotectedCommitCommand(Repository repo) Constructor for CommitCommandprotectedConstructor for CreateBranchCommandprotectedConstructor for DeleteBranchCommandprotectedDeleteTagCommand(Repository repo) Constructor for DeleteTagCommandprotectedDescribeCommand(Repository repo) Constructor for DescribeCommand.protectedDiffCommand(Repository repo) Constructor for DiffCommandprotectedFetchCommand(Repository repo) Constructor for FetchCommand.protectedConstructor for GarbageCollectCommand.Git(Repository repo) Construct a newGitobject which can interact with the specified git repository.Git(Repository repo, boolean closeRepo) Construct a newGitobject which can interact with the specified git repository.protectedGitCommand(Repository repo) Creates a new command which interacts with a single repositoryprotectedListBranchCommand(Repository repo) Constructor for ListBranchCommand.protectedListNotesCommand(Repository repo) Constructor for ListNotesCommand.protectedListTagCommand(Repository repo) Constructor for ListTagCommand.protectedLogCommand(Repository repo) Constructor for LogCommand.LsRemoteCommand(Repository repo) Constructor for LsRemoteCommandprotectedMergeCommand(Repository repo) Constructor for MergeCommand.protectedNameRevCommand(Repository repo) Create a new name-rev command.PackRefsCommand(Repository repo) Creates a newPackRefsCommandinstance with default values.protectedPullCommand(Repository repo) Constructor for PullCommand.protectedPushCommand(Repository repo) Constructor for PushCommand.protectedRebaseCommand(Repository repo) Constructor for RebaseCommand.ReflogCommand(Repository repo) Constructor for ReflogCommand.protectedRemoteAddCommand(Repository repo) Constructor for RemoteAddCommand.protectedRemoteListCommand(Repository repo) Constructor for RemoteListCommand.protectedConstructor for RemoteRemoveCommand.protectedConstructor for RemoteSetUrlCommand.protectedRemoveNoteCommand(Repository repo) Constructor for RemoveNoteCommand.protectedConstructor for RenameBranchCommand.ResetCommand(Repository repo) Constructor for ResetCommand.protectedRevertCommand(Repository repo) Constructor for RevertCommand.RmCommand(Repository repo) Constructor for RmCommand.protectedShowNoteCommand(Repository repo) Constructor for ShowNoteCommand.StashApplyCommand(Repository repo) Create command to apply the changes of a stashed commitStashCreateCommand(Repository repo) Create a command to stash changes in the working directory and indexStashDropCommand(Repository repo) Constructor for StashDropCommand.StashListCommand(Repository repo) Create a new stash list commandprotectedStatusCommand(Repository repo) Constructor for StatusCommand.Constructor for SubmoduleAddCommand.Constructor of SubmoduleDeinitCommandConstructor for SubmoduleInitCommand.Constructor for SubmoduleStatusCommand.Constructor for SubmoduleSyncCommand.Constructor for SubmoduleUpdateCommand.protectedTagCommand(Repository repo) Constructor for TagCommand.protectedTransportCommand(Repository repo) Constructor for TransportCommand.Creates a newVerifySignatureCommandfor the givenRepository. -
Uses of Repository in org.eclipse.jgit.attributes
Methods in org.eclipse.jgit.attributes with parameters of type RepositoryModifier and TypeMethodDescriptionFilterCommandFactory.create(Repository db, InputStream in, OutputStream out) Create a newFilterCommand.static FilterCommandFilterCommandRegistry.createFilterCommand(String filterCommandName, Repository db, InputStream in, OutputStream out) Create a newFilterCommandfor the given name. -
Uses of Repository in org.eclipse.jgit.blame
Methods in org.eclipse.jgit.blame that return RepositoryConstructors in org.eclipse.jgit.blame with parameters of type RepositoryModifierConstructorDescriptionBlameGenerator(Repository repository, String path) Create a blame generator for the repository and path (relative to repository)BlameGenerator(Repository repository, String path, BlameCache blameCache) Create a blame generator for the repository and path (relative to repository) -
Uses of Repository in org.eclipse.jgit.blame.cache
Methods in org.eclipse.jgit.blame.cache with parameters of type RepositoryModifier and TypeMethodDescriptionBlameCache.get(Repository repo, ObjectId commitId, String path) Gets the blame of a path at a given commit if available. -
Uses of Repository in org.eclipse.jgit.diff
Methods in org.eclipse.jgit.diff with parameters of type RepositoryModifier and TypeMethodDescriptionvoidDiffFormatter.setRepository(Repository repository) Set the repository the formatter can load object contents from.Constructors in org.eclipse.jgit.diff with parameters of type RepositoryModifierConstructorDescriptionRenameDetector(Repository repo) Create a new rename detector for the given repository -
Uses of Repository in org.eclipse.jgit.dircache
Methods in org.eclipse.jgit.dircache with parameters of type RepositoryModifier and TypeMethodDescriptionstatic voidDirCacheCheckout.getContent(Repository repo, String path, DirCacheCheckout.CheckoutMetadata checkoutMetadata, DirCacheCheckout.StreamSupplier inputStream, WorkingTreeOptions opt, OutputStream os) Return filtered content for blob contents.static voidDirCacheCheckout.getContent(Repository repo, String path, DirCacheCheckout.CheckoutMetadata checkoutMetadata, ObjectLoader ol, WorkingTreeOptions opt, OutputStream os) Return filtered content for a specific object (blob).static DirCacheDirCache.lock(Repository repository, IndexChangedListener indexChangedListener) Create a new in-core index representation, lock it, and read from disk.static DirCacheDirCache.read(Repository repository) Create a new in-core index representation and read an index from disk.Constructors in org.eclipse.jgit.dircache with parameters of type RepositoryModifierConstructorDescriptionCheckout(Repository repo) Creates a newCheckoutfor checking out from the given repository.Checkout(Repository repo, WorkingTreeOptions options) Creates a newCheckoutfor checking out from the given repository.DirCacheCheckout(Repository repo, DirCache dc, ObjectId mergeCommitTree) Constructs a DirCacheCeckout for checking out one tree, merging with the index.DirCacheCheckout(Repository repo, DirCache dc, ObjectId mergeCommitTree, WorkingTreeIterator workingTree) Constructs a DirCacheCeckout for checking out one tree, merging with the index.DirCacheCheckout(Repository repo, ObjectId headCommitTree, DirCache dc, ObjectId mergeCommitTree) Constructs a DirCacheCeckout for merging and checking out two trees (HEAD and mergeCommitTree) and the index.DirCacheCheckout(Repository repo, ObjectId headCommitTree, DirCache dc, ObjectId mergeCommitTree, WorkingTreeIterator workingTree) Constructs a DirCacheCeckout for merging and checking out two trees (HEAD and mergeCommitTree) and the index. -
Uses of Repository in org.eclipse.jgit.events
Methods in org.eclipse.jgit.events that return RepositoryModifier and TypeMethodDescriptionRepositoryEvent.getRepository()Get the repository that was changedMethods in org.eclipse.jgit.events with parameters of type RepositoryModifier and TypeMethodDescriptionvoidRepositoryEvent.setRepository(Repository r) Set the repository this event occurred on. -
Uses of Repository in org.eclipse.jgit.gitrepo
Constructors in org.eclipse.jgit.gitrepo with parameters of type RepositoryModifierConstructorDescriptionCopyFile(Repository repo, String path, String src, String dest) LinkFile(Repository repo, String path, String src, String dest) ManifestParser(ManifestParser.IncludedFileReader includedReader, String filename, String defaultBranch, String baseUrl, String groups, Repository rootRepo) Constructor for ManifestParserReferenceFile(Repository repo, String path, String src, String dest) RepoCommand(Repository repo) Constructor for RepoCommand -
Uses of Repository in org.eclipse.jgit.hooks
Methods in org.eclipse.jgit.hooks that return RepositoryModifier and TypeMethodDescriptionprotected RepositoryGitHook.getRepository()Get the repositoryMethods in org.eclipse.jgit.hooks with parameters of type RepositoryModifier and TypeMethodDescriptionstatic CommitMsgHookHooks.commitMsg(Repository repo, PrintStream outputStream) Create commit-msg hook for the given repository with the default error streamstatic CommitMsgHookHooks.commitMsg(Repository repo, PrintStream outputStream, PrintStream errorStream) Create commit-msg hook for the given repositorystatic PostCommitHookHooks.postCommit(Repository repo, PrintStream outputStream) Create post-commit hook for the given repository with the default error streamstatic PostCommitHookHooks.postCommit(Repository repo, PrintStream outputStream, PrintStream errorStream) Create post-commit hook for the given repositorystatic PreCommitHookHooks.preCommit(Repository repo, PrintStream outputStream) Create pre-commit hook for the given repository with the default error streamstatic PreCommitHookHooks.preCommit(Repository repo, PrintStream outputStream, PrintStream errorStream) Create pre-commit hook for the given repositorystatic PrePushHookHooks.prePush(Repository repo, PrintStream outputStream) Create pre-push hook for the given repository with the default error streamstatic PrePushHookHooks.prePush(Repository repo, PrintStream outputStream, PrintStream errorStream) Create pre-push hook for the given repositoryConstructors in org.eclipse.jgit.hooks with parameters of type RepositoryModifierConstructorDescriptionprotectedCommitMsgHook(Repository repo, PrintStream outputStream) Constructor for CommitMsgHookprotectedCommitMsgHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for CommitMsgHookprotectedGitHook(Repository repo, OutputStream outputStream) Constructor for GitHook.protectedGitHook(Repository repo, OutputStream outputStream, OutputStream errorStream) Constructor for GitHookprotectedPostCommitHook(Repository repo, PrintStream outputStream) Constructor for PostCommitHookprotectedPostCommitHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PostCommitHookprotectedPreCommitHook(Repository repo, PrintStream outputStream) Constructor for PreCommitHookprotectedPreCommitHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PreCommitHookprotectedPrePushHook(Repository repo, PrintStream outputStream) Constructor for PrePushHookprotectedPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PrePushHook -
Uses of Repository in org.eclipse.jgit.internal.diff
Constructors in org.eclipse.jgit.internal.diff with parameters of type Repository -
Uses of Repository in org.eclipse.jgit.internal.diffmergetool
Methods in org.eclipse.jgit.internal.diffmergetool with parameters of type RepositoryModifier and TypeMethodDescriptionExternalToolUtils.getExternalToolFromAttributes(Repository repository, String path, String toolKey) ProvidesOptionalwith the name of an external tool if specified in git configuration for a path.Constructors in org.eclipse.jgit.internal.diffmergetool with parameters of type RepositoryModifierConstructorDescriptionDiffTools(Repository repo) Creates the external diff-tools manager for given repository.MergeTools(Repository repo) Creates the external merge-tools manager for given repository. -
Uses of Repository in org.eclipse.jgit.internal.storage.dfs
Subclasses of Repository in org.eclipse.jgit.internal.storage.dfsModifier and TypeClassDescriptionclassA Git repository on a DFS.classGit repository stored entirely in the local process memory. -
Uses of Repository in org.eclipse.jgit.internal.storage.file
Subclasses of Repository in org.eclipse.jgit.internal.storage.fileConstructors in org.eclipse.jgit.internal.storage.file with parameters of type RepositoryModifierConstructorDescriptionGlobalAttributesNode(Repository repository) Constructor for GlobalAttributesNode.InfoAttributesNode(Repository repository) Constructor for InfoAttributesNode. -
Uses of Repository in org.eclipse.jgit.internal.storage.pack
Constructors in org.eclipse.jgit.internal.storage.pack with parameters of type RepositoryModifierConstructorDescriptionPackWriter(Repository repo) Create writer for specified repository.PackWriter(Repository repo, ObjectReader reader) Create writer for specified repository. -
Uses of Repository in org.eclipse.jgit.internal.storage.reftable
Constructors in org.eclipse.jgit.internal.storage.reftable with parameters of type RepositoryModifierConstructorDescriptionprotectedReftableBatchRefUpdate(RefDatabase refDb, ReftableDatabase reftableDb, Lock lock, Repository repository) Initialize.Create a configuration honoring the repository's settings. -
Uses of Repository in org.eclipse.jgit.lib
Classes in org.eclipse.jgit.lib with type parameters of type RepositoryModifier and TypeClassDescriptionclassBaseRepositoryBuilder<B extends BaseRepositoryBuilder,R extends Repository> Base builder to customize repository construction.Methods in org.eclipse.jgit.lib that return RepositoryModifier and TypeMethodDescriptionFileModeCache.getRepository()Retrieves theRepository.protected abstract RepositoryRefUpdate.getRepository()Get the repository storing the database's objects.RepositoryCache.FileKey.open(boolean mustExist) RepositoryCache.Key.open(boolean mustExist) Called byRepositoryCache.open(Key)if it doesn't exist yet.static RepositoryRepositoryCache.open(RepositoryCache.Key location) Open an existing repository, reusing a cached instance if possible.static RepositoryRepositoryCache.open(RepositoryCache.Key location, boolean mustExist) Open a repository, reusing a cached instance if possible.Methods in org.eclipse.jgit.lib with parameters of type RepositoryModifier and TypeMethodDescriptionbooleanSigner.canLocateSigningKey(Repository repository, GpgConfig config, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) Indicates if a signing key is available for the specified committer and/or signing key.static voidRepositoryCache.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.IndexDiff.WorkingTreeIteratorFactory.getWorkingTreeIterator(Repository repo) Get working tree iteratorstatic BranchTrackingStatusBranchTrackingStatus.of(Repository repository, String branchName) Compute the tracking status for thebranchNameinrepository.static AbbrevConfigAbbrevConfig.parseFromConfig(Repository repo) Parse string value of core.abbrev git option for a given repositorystatic voidRepositoryCache.register(Repository db) Register one repository into the cache.Signer.sign(Repository repository, GpgConfig config, byte[] data, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) Signs arbitrary data.default voidSigner.signObject(Repository repository, GpgConfig config, ObjectBuilder object, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) Signs the specified object.static voidRepositoryCache.unregister(Repository db) Remove a repository from the cache.SignatureVerifier.verify(Repository repository, GpgConfig config, byte[] data, byte[] signatureData) Verifies a given signature for given data.SignatureVerifiers.verify(Repository repository, GpgConfig config, byte[] data, byte[] signature) Verifies a given signature for some give data.SignatureVerifiers.verify(Repository repository, GpgConfig config, RevObject object) Verifies the signature on a signed commit or tag.Constructors in org.eclipse.jgit.lib with parameters of type RepositoryModifierConstructorDescriptionBlobBasedConfig(Config base, Repository db, AnyObjectId objectId) Load a configuration file from a blob.BlobBasedConfig(Config base, Repository db, AnyObjectId treeish, String path) Load a configuration file from a blob stored in a specific commit.FileModeCache(Repository repo) Creates a newFileModeCachefor aRepository.IndexDiff(Repository repository, String revstr, WorkingTreeIterator workingTreeIterator) Construct an IndexDiffIndexDiff(Repository repository, ObjectId objectId, WorkingTreeIterator workingTreeIterator) Construct an IndexdiffPersonIdent(Repository repo) Creates new PersonIdent from config info in repository, with current time.RebaseTodoFile(Repository repo) Constructor for RebaseTodoFile. -
Uses of Repository in org.eclipse.jgit.merge
Fields in org.eclipse.jgit.merge declared as RepositoryModifier and TypeFieldDescriptionprotected final RepositoryMerger.dbThe repository this merger operates on.Methods in org.eclipse.jgit.merge that return RepositoryModifier and TypeMethodDescriptionMerger.getRepository()Get the repository this merger operates on.protected RepositoryMerger.nonNullRepo()Get non-null repository instanceMethods in org.eclipse.jgit.merge with parameters of type RepositoryModifier and TypeMethodDescriptionResolveMerger.WorkTreeUpdater.createInCoreWorkTreeUpdater(Repository repo, DirCache dirCache, ObjectInserter oi) Creates a newResolveMerger.WorkTreeUpdaterthat works in memory only.ResolveMerger.WorkTreeUpdater.createWorkTreeUpdater(Repository repo, DirCache dirCache) Creates a newResolveMerger.WorkTreeUpdaterfor the given repository.static MergeConfigMergeConfig.getConfigForCurrentBranch(Repository repo) Get merge configuration for the current branch of the repositoryabstract MergerMergeStrategy.newMerger(Repository db) Create a new merge instance.abstract MergerMergeStrategy.newMerger(Repository db, boolean inCore) Create a new merge instance.StrategyOneSided.newMerger(Repository db) StrategyOneSided.newMerger(Repository db, boolean inCore) StrategyRecursive.newMerger(Repository db) StrategyRecursive.newMerger(Repository db, boolean inCore) StrategyResolve.newMerger(Repository db) StrategyResolve.newMerger(Repository db, boolean inCore) StrategySimpleTwoWayInCore.newMerger(Repository db) StrategySimpleTwoWayInCore.newMerger(Repository db, boolean inCore) abstract ThreeWayMergerThreeWayMergeStrategy.newMerger(Repository db) abstract ThreeWayMergerThreeWayMergeStrategy.newMerger(Repository db, boolean inCore) Constructors in org.eclipse.jgit.merge with parameters of type RepositoryModifierConstructorDescriptionprotectedMerger(Repository local) Create a new merge instance for a repository.protectedRecursiveMerger(Repository local) Normal recursive merge, implies not inCoreprotectedRecursiveMerger(Repository local, boolean inCore) Normal recursive merge when you want a choice of DirCache placement inCoreprotectedResolveMerger(Repository local) Constructor for ResolveMerger.protectedResolveMerger(Repository local, boolean inCore) Constructor for ResolveMerger.protectedThreeWayMerger(Repository local) Create a new merge instance for a repository.protectedThreeWayMerger(Repository local, boolean inCore) Create a new merge instance for a repository. -
Uses of Repository in org.eclipse.jgit.notes
Constructors in org.eclipse.jgit.notes with parameters of type RepositoryModifierConstructorDescriptionConstructs a NoteMapMerger withDefaultNoteMergeras the merger for notes and theMergeStrategy.RESOLVEas the strategy for resolving conflicts on non-notesNoteMapMerger(Repository db, NoteMerger noteMerger, MergeStrategy nonNotesMergeStrategy) Constructs a NoteMapMerger with customNoteMergerand customMergeStrategy. -
Uses of Repository in org.eclipse.jgit.patch
Constructors in org.eclipse.jgit.patch with parameters of type RepositoryModifierConstructorDescriptionPatchApplier(Repository repo) PatchApplier(Repository repo, RevTree beforeTree, ObjectInserter oi) -
Uses of Repository in org.eclipse.jgit.revplot
Constructors in org.eclipse.jgit.revplot with parameters of type RepositoryModifierConstructorDescriptionPlotWalk(Repository repo) Create a new revision walker for a given repository. -
Uses of Repository in org.eclipse.jgit.revwalk
Constructors in org.eclipse.jgit.revwalk with parameters of type RepositoryModifierConstructorDescriptionObjectWalk(Repository repo, int depth) Create ObjectWalkObjectWalk(Repository repo) Create a new revision and object walker for a given repository.RevWalk(Repository repo, int depth) Create RevWalkRevWalk(Repository repo) Create a new revision walker for a given repository. -
Uses of Repository in org.eclipse.jgit.storage.file
Methods in org.eclipse.jgit.storage.file that return RepositoryModifier and TypeMethodDescriptionFileRepositoryBuilder.build()Create a repository matching the configuration in this builder.static RepositoryConvenience factory method to construct aFileRepository. -
Uses of Repository in org.eclipse.jgit.storage.pack
Constructors in org.eclipse.jgit.storage.pack with parameters of type RepositoryModifierConstructorDescriptionPackConfig(Repository db) Create a configuration honoring the repository's settings. -
Uses of Repository in org.eclipse.jgit.submodule
Methods in org.eclipse.jgit.submodule that return RepositoryModifier and TypeMethodDescriptionSubmoduleWalk.getRepository()Get repository for current submodule entrystatic RepositorySubmoduleWalk.getSubmoduleRepository(File parent, String path) Get submodule repository at pathstatic RepositorySubmoduleWalk.getSubmoduleRepository(File parent, String path, FS fs) Get submodule repository at path, using the specified file system abstractionstatic RepositorySubmoduleWalk.getSubmoduleRepository(File parent, String path, FS fs, BaseRepositoryBuilder<?, ? extends Repository> builder) Get submodule repository at path, using the specified file system abstraction and the specified builderstatic RepositorySubmoduleWalk.getSubmoduleRepository(Repository parent, String path) Get submodule repositoryMethods in org.eclipse.jgit.submodule with parameters of type RepositoryModifier and TypeMethodDescriptionstatic booleanSubmoduleWalk.containsGitModulesFile(Repository repository) Checks whether the working tree contains a .gitmodules file.static SubmoduleWalkSubmoduleWalk.forIndex(Repository repository) Create a generator to walk over the submodule entries currently in the index The.gitmodulesfile is read from the index.static SubmoduleWalkSubmoduleWalk.forPath(Repository repository, AnyObjectId treeId, String path) Create a generator and advance it to the submodule entry at the given pathstatic SubmoduleWalkSubmoduleWalk.forPath(Repository repository, AbstractTreeIterator iterator, String path) Create a generator and advance it to the submodule entry at the given pathstatic FileSubmoduleWalk.getSubmoduleDirectory(Repository parent, String path) Get submodule directorystatic StringSubmoduleWalk.getSubmoduleRemoteUrl(Repository parent, String url) Resolve submodule repository URL.static RepositorySubmoduleWalk.getSubmoduleRepository(Repository parent, String path) Get submodule repositoryMethod parameters in org.eclipse.jgit.submodule with type arguments of type RepositoryModifier and TypeMethodDescriptionstatic RepositorySubmoduleWalk.getSubmoduleRepository(File parent, String path, FS fs, BaseRepositoryBuilder<?, ? extends Repository> builder) Get submodule repository at path, using the specified file system abstraction and the specified builderConstructors in org.eclipse.jgit.submodule with parameters of type Repository -
Uses of Repository in org.eclipse.jgit.transport
Fields in org.eclipse.jgit.transport declared as RepositoryModifier and TypeFieldDescriptionprotected final RepositoryBasePackConnection.localThe repository this transport fetches into, or pushes out of.protected final RepositoryBasePackConnection.localThe repository this transport fetches into, or pushes out of.protected final RepositoryTransport.localThe repository this transport fetches into, or pushes out of.Methods in org.eclipse.jgit.transport that return RepositoryModifier and TypeMethodDescriptionConnectivityChecker.ConnectivityCheckInfo.getRepository()Get database we write the stored objects intoReceivePack.getRepository()Get the repository this receive completes into.final RepositoryUploadPack.getRepository()Get the repository this upload is reading from.Methods in org.eclipse.jgit.transport with parameters of type RepositoryModifier and TypeMethodDescriptionbooleanTransportProtocol.canHandle(URIish uri, Repository local, String remoteName) Determine if this protocol can handle a particular URI.HMACSHA1NonceGenerator.createNonce(Repository repo, long timestamp) NonceGenerator.createNonce(Repository db, long timestamp) Create nonce to be signed by the pusherstatic Collection<RemoteRefUpdate>Transport.findRemoteRefUpdatesFor(Repository db, Collection<RefSpec> specs, Collection<RefSpec> fetchSpecs) Convert push remote refs update specification fromRefSpecform toRemoteRefUpdate.static Collection<RemoteRefUpdate>Transport.findRemoteRefUpdatesFor(Repository db, Collection<RefSpec> specs, Map<String, RefLeaseSpec> leases, Collection<RefSpec> fetchSpecs) Convert push remote refs update specification fromRefSpecform toRemoteRefUpdate.AbstractAdvertiseRefsHook.getAdvertisedHaves(Repository repository, RevWalk revWalk) Get the additional haves to advertise.AbstractAdvertiseRefsHook.getAdvertisedRefs(Repository repository, RevWalk revWalk) Get the refs to advertise.voidRefAdvertiser.init(Repository src) Initialize this advertiser with a repository for peeling tags.TestProtocol.open(URIish uri, Repository local, String remoteName) static TransportTransport.open(Repository local, String remote) Open a new transport instance to connect two repositories.static TransportTransport.open(Repository local, String remote, Transport.Operation op) Open a new transport instance to connect two repositories.static TransportTransport.open(Repository local, RemoteConfig cfg) Open a new transport instance to connect two repositories.static TransportTransport.open(Repository local, RemoteConfig cfg, Transport.Operation op) Open a new transport instance to connect two repositories.static TransportTransport.open(Repository local, URIish uri) Open a new transport instance to connect two repositories.static TransportTransport.open(Repository local, URIish uri, String remoteName) Open a new transport instance to connect two repositories.abstract TransportTransportProtocol.open(URIish uri, Repository local, String remoteName) Open a Transport instance to the other repository.Transport.openAll(Repository local, String remote) Open new transport instances to connect two repositories.Transport.openAll(Repository local, String remote, Transport.Operation op) Open new transport instances to connect two repositories.Transport.openAll(Repository local, RemoteConfig cfg) Open new transport instances to connect two repositories.Transport.openAll(Repository local, RemoteConfig cfg, Transport.Operation op) Open new transport instances to connect two repositories.TestProtocol.register(C req, Repository remote) Register a repository connection over the internal test protocol.voidConnectivityChecker.ConnectivityCheckInfo.setRepository(Repository repository) Set database we write the stored objects intoHMACSHA1NonceGenerator.verify(String received, String sent, Repository db, boolean allowSlop, int slop) NonceGenerator.verify(String received, String sent, Repository db, boolean allowSlop, int slop) Verify trustworthiness of the received nonce.Constructors in org.eclipse.jgit.transport with parameters of type RepositoryModifierConstructorDescriptionBundleWriter(Repository repo) Create a writer for a bundle.protectedHttpTransport(Repository local, URIish uri) Create a new transport instance.PushCertificateParser(Repository into, SignedPushConfig cfg) Constructor for PushCertificateParser.Create a new store backed by the given repository.ReceivePack(Repository into) Create a new pack receive for an open repository.RemoteRefUpdate(Repository localDb, String srcRef, String remoteName, boolean forceUpdate, String localName, ObjectId expectedOldObjectId) Construct remote ref update request by providing an update specification.RemoteRefUpdate(Repository localDb, String srcRef, ObjectId srcId, String remoteName, boolean forceUpdate, String localName, ObjectId expectedOldObjectId) Construct remote ref update request by providing an update specification.RemoteRefUpdate(Repository localDb, Ref srcRef, String remoteName, boolean forceUpdate, String localName, ObjectId expectedOldObjectId) Construct remote ref update request by providing an update specification.protectedSshTransport(Repository local, URIish uri) Create a new transport instance.protectedTcpTransport(Repository local, URIish uri) Create a new transport instance.Create a configuration honoring the repository's settings.protectedTransport(Repository local, URIish uri) Create a new transport instance.TransportBundleStream(Repository db, URIish uri, InputStream in) Create a new transport to fetch objects from a streamed bundle.UploadPack(Repository copyFrom) Create a new pack upload for an open repository. -
Uses of Repository in org.eclipse.jgit.transport.resolver
Methods in org.eclipse.jgit.transport.resolver that return RepositoryMethods in org.eclipse.jgit.transport.resolver with parameters of type RepositoryModifier and TypeMethodDescriptionReceivePackFactory.create(C req, Repository db) Create and configure a new ReceivePack instance for a repository.UploadPackFactory.create(C req, Repository db) Create and configure a new UploadPack instance for a repository.voidFileResolver.exportRepository(String name, Repository db) Add a single repository to the set that is exported by this daemon.protected booleanFileResolver.isExportOk(C req, String repositoryName, Repository db) Check if this repository can be served. -
Uses of Repository in org.eclipse.jgit.treewalk
Fields in org.eclipse.jgit.treewalk declared as RepositoryModifier and TypeFieldDescriptionprotected RepositoryWorkingTreeIterator.repositoryRepository that is the root level being iterated overMethods in org.eclipse.jgit.treewalk that return RepositoryModifier and TypeMethodDescriptionWorkingTreeIterator.getRepository()Retrieves theRepositorythisWorkingTreeIteratoroperates on.Methods in org.eclipse.jgit.treewalk with parameters of type RepositoryModifier and TypeMethodDescriptionstatic TreeWalkTreeWalk.forPath(Repository db, String path, AnyObjectId... trees) Open a tree walk and filter to exactly one path.static TreeWalkTreeWalk.forPath(Repository db, String path, RevTree tree) Open a tree walk and filter to exactly one path.static TreeWalkTreeWalk.forPath(Repository repo, ObjectReader reader, String path, AnyObjectId... trees) Open a tree walk and filter to exactly one path.protected voidWorkingTreeIterator.initRootIterator(Repository repo) Initialize this iterator for the root level of a repository.Constructors in org.eclipse.jgit.treewalk with parameters of type RepositoryModifierConstructorDescriptionFileTreeIterator(Repository repo) Create a new iterator to traverse the work tree and its children.FileTreeIterator(Repository repo, FileTreeIterator.FileModeStrategy fileModeStrategy) Create a new iterator to traverse the work tree and its children.Create a new tree walker for a given repository.NameConflictTreeWalk(Repository repo, ObjectReader or) Create a new tree walker for a given repository.TreeWalk(Repository repo) Create a new tree walker for a given repository.TreeWalk(Repository repo, ObjectReader or) Create a new tree walker for a given repository. -
Uses of Repository in org.eclipse.jgit.util
Methods in org.eclipse.jgit.util with parameters of type RepositoryModifier and TypeMethodDescriptionLfsFactory.applyCleanFilter(Repository db, InputStream input, long length, Attribute attribute) Apply clean filtering to the given stream, writing the file content to the LFS storage if required and returning a stream to the LFS pointer instead.LfsFactory.applySmudgeFilter(Repository db, ObjectLoader loader, Attribute attribute) Apply smudge filtering to a given loader, potentially redirecting it to a LFS blob which is downloaded on demand.FS.findHook(Repository repository, String hookName) Tries to find a hook matching the given one in the given repository.static AttributesLfsFactory.getAttributesForPath(Repository db, String path) Get git attributes for given pathstatic AttributesLfsFactory.getAttributesForPath(Repository db, String path, RevCommit commit) Get attributes for given path and commitLfsFactory.getPrePushHook(Repository repo, PrintStream outputStream) Retrieve a pre-push hook to be applied using the default error stream.LfsFactory.getPrePushHook(Repository repo, PrintStream outputStream, PrintStream errorStream) Retrieve a pre-push hook to be applied.protected ProcessResultFS.internalRunHookIfPresent(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) booleanLfsFactory.isEnabled(Repository db) Whether LFS is enabledFS_POSIX.runHookIfPresent(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) Checks whether the given hook is defined for the given repository, then runs it with the given arguments.FS_Win32_Cygwin.runHookIfPresent(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) FS.runHookIfPresent(Repository repository, String hookName, String[] args) Checks whether the given hook is defined for the given repository, then runs it with the given arguments.FS.runHookIfPresent(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) Checks whether the given hook is defined for the given repository, then runs it with the given arguments.LfsFactory.LfsInstallCommand.setRepository(Repository repo) Set the repository to enable LFS for