Uses of Class
org.eclipse.jgit.lib.Repository
-
Packages that use Repository Package Description org.eclipse.jgit.api High-level API commands (the porcelain of JGit).org.eclipse.jgit.blame Computing blame/annotate information of files.org.eclipse.jgit.diff Comparing file contents by computing diffs.org.eclipse.jgit.dircache Reading and editing the directory cache (index).org.eclipse.jgit.events Events and listener interfaces.org.eclipse.jgit.gitrepo org.eclipse.jgit.internal.storage.dfs Distributed file system based repository storage.org.eclipse.jgit.internal.storage.file File based repository storage.org.eclipse.jgit.internal.storage.pack Reading/writing Git pack files.org.eclipse.jgit.lib Core API for repository, config, refs, object database.org.eclipse.jgit.merge Content and commit history merge algorithms.org.eclipse.jgit.notes Git notes processing (for commits, etc).org.eclipse.jgit.revplot Building/rendering revision graphs.org.eclipse.jgit.revwalk Walking revision graphs (commit history).org.eclipse.jgit.storage.file org.eclipse.jgit.storage.pack org.eclipse.jgit.submodule Git submodule support.org.eclipse.jgit.transport Transport (fetch/push) for different protocols.org.eclipse.jgit.transport.resolver Server-side resolver for locating repositories by URLs.org.eclipse.jgit.treewalk Walking and comparing directory/file trees (of commits, file system).org.eclipse.jgit.util Utility classes. -
-
Uses of Repository in org.eclipse.jgit.api
Fields in org.eclipse.jgit.api declared as Repository Modifier and Type Field Description protected Repository
GitCommand. repo
The repository this command is working withMethods in org.eclipse.jgit.api that return Repository Modifier and Type Method Description Repository
SubmoduleAddCommand. call()
Executes theSubmoduleAddCommand
TheRepository
instance returned by this command needs to be closed by the caller to free resources held by theRepository
instance.Repository
Git. getRepository()
Repository
GitCommand. getRepository()
Methods in org.eclipse.jgit.api with parameters of type Repository Modifier and Type Method Description protected String
SubmoduleSyncCommand. getHeadBranch(Repository subRepo)
Get branch that HEAD currently points tostatic Git
Git. wrap(Repository repo)
-
Uses of Repository in org.eclipse.jgit.blame
Methods in org.eclipse.jgit.blame that return Repository Modifier and Type Method Description Repository
BlameGenerator. getRepository()
Constructors in org.eclipse.jgit.blame with parameters of type Repository Constructor Description BlameGenerator(Repository repository, String path)
Create a blame generator for the repository and path (relative to repository) -
Uses of Repository in org.eclipse.jgit.diff
Methods in org.eclipse.jgit.diff with parameters of type Repository Modifier and Type Method Description void
DiffFormatter. setRepository(Repository repository)
Set the repository the formatter can load object contents from.Constructors in org.eclipse.jgit.diff with parameters of type Repository Constructor Description RenameDetector(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 Repository Modifier and Type Method Description static void
DirCacheCheckout. checkoutEntry(Repository repository, File f, DirCacheEntry entry)
Deprecated.Use the overloaded form that acceptsObjectReader
.static void
DirCacheCheckout. checkoutEntry(Repository repo, File f, DirCacheEntry entry, ObjectReader or)
Deprecated.Do not pass File object.static void
DirCacheCheckout. checkoutEntry(Repository repo, DirCacheEntry entry, ObjectReader or)
Updates the file in the working tree with content and mode from an entry in the index.static DirCache
DirCache. lock(Repository repository, IndexChangedListener indexChangedListener)
Create a new in-core index representation, lock it, and read from disk.static DirCache
DirCache. 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 Repository Constructor Description 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 Repository Modifier and Type Method Description Repository
RepositoryEvent. getRepository()
Methods in org.eclipse.jgit.events with parameters of type Repository Modifier and Type Method Description void
RepositoryEvent. setRepository(Repository r)
Set the repository this event occurred on. -
Uses of Repository in org.eclipse.jgit.gitrepo
Methods in org.eclipse.jgit.gitrepo with parameters of type Repository Modifier and Type Method Description protected byte[]
RepoCommand.DefaultRemoteReader. readFileFromRepo(Repository repo, String ref, String path)
Read a file from the repositoryConstructors in org.eclipse.jgit.gitrepo with parameters of type Repository Constructor Description RepoCommand(Repository repo)
-
Uses of Repository in org.eclipse.jgit.internal.storage.dfs
Subclasses of Repository in org.eclipse.jgit.internal.storage.dfs Modifier and Type Class Description class
DfsRepository
A Git repository on a DFS.class
InMemoryRepository
Git 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.file Modifier and Type Class Description class
FileRepository
Represents a Git repository.Methods in org.eclipse.jgit.internal.storage.file that return Repository Modifier and Type Method Description Repository
ReflogWriter. getRepository()
Get repository that reflog is being written forConstructors in org.eclipse.jgit.internal.storage.file with parameters of type Repository Constructor Description ReflogWriter(Repository repository)
Create write for repositoryReflogWriter(Repository repository, boolean forceWrite)
Create write for repository -
Uses of Repository in org.eclipse.jgit.internal.storage.pack
Constructors in org.eclipse.jgit.internal.storage.pack with parameters of type Repository Constructor Description PackWriter(Repository repo)
Create writer for specified repository.PackWriter(Repository repo, ObjectReader reader)
Create writer for specified repository. -
Uses of Repository in org.eclipse.jgit.lib
Classes in org.eclipse.jgit.lib with type parameters of type Repository Modifier and Type Class Description class
BaseRepositoryBuilder<B extends BaseRepositoryBuilder,R extends Repository>
Base builder to customize repository construction.Methods in org.eclipse.jgit.lib that return Repository Modifier and Type Method Description protected abstract Repository
RefUpdate. getRepository()
Repository
Tree. getRepository()
Deprecated.Repository
TreeEntry. getRepository()
Deprecated.Repository
RepositoryCache.FileKey. open(boolean mustExist)
Repository
RepositoryCache.Key. open(boolean mustExist)
Called byRepositoryCache.open(Key)
if it doesn't exist yet.static Repository
RepositoryCache. open(RepositoryCache.Key location)
Open an existing repository, reusing a cached instance if possible.static Repository
RepositoryCache. 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 Repository Modifier and Type Method Description static void
RepositoryCache. close(Repository db)
Remove a repository from the cache.WorkingTreeIterator
IndexDiff.WorkingTreeIteratorFactory. getWorkingTreeIterator(Repository repo)
static BranchTrackingStatus
BranchTrackingStatus. of(Repository repository, String branchName)
Compute the tracking status for thebranchName
inrepository
.static void
RepositoryCache. register(Repository db)
Register one repository into the cache.Constructors in org.eclipse.jgit.lib with parameters of type Repository Constructor Description BlobBasedConfig(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.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)
Tree(Repository repo)
Deprecated.Constructor for a new TreeTree(Repository repo, ObjectId myId, byte[] raw)
Deprecated.Construct a Tree object with known content and hash value -
Uses of Repository in org.eclipse.jgit.merge
Fields in org.eclipse.jgit.merge declared as Repository Modifier and Type Field Description protected Repository
Merger. db
The repository this merger operates on.Methods in org.eclipse.jgit.merge that return Repository Modifier and Type Method Description Repository
Merger. getRepository()
Methods in org.eclipse.jgit.merge with parameters of type Repository Modifier and Type Method Description static MergeConfig
MergeConfig. getConfigForCurrentBranch(Repository repo)
abstract Merger
MergeStrategy. newMerger(Repository db)
Create a new merge instance.abstract Merger
MergeStrategy. newMerger(Repository db, boolean inCore)
Create a new merge instance.Merger
StrategyOneSided. newMerger(Repository db)
Merger
StrategyOneSided. newMerger(Repository db, boolean inCore)
ThreeWayMerger
StrategyRecursive. newMerger(Repository db)
ThreeWayMerger
StrategyRecursive. newMerger(Repository db, boolean inCore)
ThreeWayMerger
StrategyResolve. newMerger(Repository db)
ThreeWayMerger
StrategyResolve. newMerger(Repository db, boolean inCore)
ThreeWayMerger
StrategySimpleTwoWayInCore. newMerger(Repository db)
ThreeWayMerger
StrategySimpleTwoWayInCore. newMerger(Repository db, boolean inCore)
abstract ThreeWayMerger
ThreeWayMergeStrategy. newMerger(Repository db)
abstract ThreeWayMerger
ThreeWayMergeStrategy. newMerger(Repository db, boolean inCore)
Constructors in org.eclipse.jgit.merge with parameters of type Repository Constructor Description Merger(Repository local)
Create a new merge instance for a repository.RecursiveMerger(Repository local)
Normal recursive merge, implies not inCoreRecursiveMerger(Repository local, boolean inCore)
Normal recursive merge when you want a choice of DirCache placement inCoreResolveMerger(Repository local)
ResolveMerger(Repository local, boolean inCore)
ThreeWayMerger(Repository local)
Create a new merge instance for a repository.ThreeWayMerger(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 Repository Constructor Description NoteMapMerger(Repository db)
Constructs a NoteMapMerger withDefaultNoteMerger
as the merger for notes and theMergeStrategy.RESOLVE
as the strategy for resolving conflicts on non-notesNoteMapMerger(Repository db, NoteMerger noteMerger, MergeStrategy nonNotesMergeStrategy)
Constructs a NoteMapMerger with customNoteMerger
and customMergeStrategy
. -
Uses of Repository in org.eclipse.jgit.revplot
Constructors in org.eclipse.jgit.revplot with parameters of type Repository Constructor Description PlotWalk(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 Repository Constructor Description ObjectWalk(Repository repo, int depth)
ObjectWalk(Repository repo)
Create a new revision and object walker for a given repository.RevWalk(Repository repo, int depth)
RevWalk(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 Repository Modifier and Type Method Description Repository
FileRepositoryBuilder. build()
Create a repository matching the configuration in this builder.static Repository
FileRepositoryBuilder. create(File gitDir)
Convenience 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 Repository Constructor Description PackConfig(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 Repository Modifier and Type Method Description Repository
SubmoduleWalk. getRepository()
Get repository for current submodule entrystatic Repository
SubmoduleWalk. getSubmoduleRepository(File parent, String path)
Get submodule repository at pathstatic Repository
SubmoduleWalk. getSubmoduleRepository(Repository parent, String path)
Get submodule repositoryMethods in org.eclipse.jgit.submodule with parameters of type Repository Modifier and Type Method Description static boolean
SubmoduleWalk. containsGitModulesFile(Repository repository)
Checks whether the working tree (or the index in case of a bare repo) contains a .gitmodules file.static SubmoduleWalk
SubmoduleWalk. forIndex(Repository repository)
Create a generator to walk over the submodule entries currently in the index The.gitmodules
file is read from the index.static SubmoduleWalk
SubmoduleWalk. forPath(Repository repository, AnyObjectId treeId, String path)
Create a generator and advance it to the submodule entry at the given pathstatic SubmoduleWalk
SubmoduleWalk. forPath(Repository repository, AbstractTreeIterator iterator, String path)
Create a generator and advance it to the submodule entry at the given pathstatic File
SubmoduleWalk. getSubmoduleDirectory(Repository parent, String path)
Get submodule directorystatic String
SubmoduleWalk. getSubmoduleRemoteUrl(Repository parent, String url)
Resolve submodule repository URL.static Repository
SubmoduleWalk. getSubmoduleRepository(Repository parent, String path)
Get submodule repositoryConstructors in org.eclipse.jgit.submodule with parameters of type Repository Constructor Description SubmoduleWalk(Repository repository)
Create submodule generator -
Uses of Repository in org.eclipse.jgit.transport
Fields in org.eclipse.jgit.transport declared as Repository Modifier and Type Field Description protected Repository
BasePackConnection. local
The repository this transport fetches into, or pushes out of.protected Repository
BasePackConnection. local
The repository this transport fetches into, or pushes out of.protected Repository
Transport. local
The repository this transport fetches into, or pushes out of.Methods in org.eclipse.jgit.transport that return Repository Modifier and Type Method Description Repository
BaseReceivePack. getRepository()
Repository
UploadPack. getRepository()
Methods in org.eclipse.jgit.transport with parameters of type Repository Modifier and Type Method Description boolean
TransportProtocol. canHandle(URIish uri, Repository local, String remoteName)
Determine if this protocol can handle a particular URI.static Collection<RemoteRefUpdate>
Transport. findRemoteRefUpdatesFor(Repository db, Collection<RefSpec> specs, Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification fromRefSpec
form toRemoteRefUpdate
.protected Set<ObjectId>
AbstractAdvertiseRefsHook. getAdvertisedHaves(Repository repository, RevWalk revWalk)
Get the additional haves to advertise.protected abstract Map<String,Ref>
AbstractAdvertiseRefsHook. getAdvertisedRefs(Repository repository, RevWalk revWalk)
Get the refs to advertise.void
RefAdvertiser. init(Repository src)
Initialize this advertiser with a repository for peeling tags.static Transport
Transport. open(Repository local, String remote)
Open a new transport instance to connect two repositories.static Transport
Transport. open(Repository local, String remote, Transport.Operation op)
Open a new transport instance to connect two repositories.static Transport
Transport. open(Repository local, RemoteConfig cfg)
Open a new transport instance to connect two repositories.static Transport
Transport. open(Repository local, RemoteConfig cfg, Transport.Operation op)
Open a new transport instance to connect two repositories.static Transport
Transport. open(Repository local, URIish uri)
Open a new transport instance to connect two repositories.static Transport
Transport. open(Repository local, URIish uri, String remoteName)
Open a new transport instance to connect two repositories.abstract Transport
TransportProtocol. open(URIish uri, Repository local, String remoteName)
Open a Transport instance to the other repository.static List<Transport>
Transport. openAll(Repository local, String remote)
Open new transport instances to connect two repositories.static List<Transport>
Transport. openAll(Repository local, String remote, Transport.Operation op)
Open new transport instances to connect two repositories.static List<Transport>
Transport. openAll(Repository local, RemoteConfig cfg)
Open new transport instances to connect two repositories.static List<Transport>
Transport. openAll(Repository local, RemoteConfig cfg, Transport.Operation op)
Open new transport instances to connect two repositories.Constructors in org.eclipse.jgit.transport with parameters of type Repository Constructor Description BaseReceivePack(Repository into)
Create a new pack receive for an open repository.BundleWriter(Repository repo)
Create a writer for a bundle.HttpTransport(Repository local, URIish uri)
Create a new transport instance.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.SshTransport(Repository local, URIish uri)
Create a new transport instance.TcpTransport(Repository local, URIish uri)
Create a new transport instance.Transport(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 Repository Modifier and Type Method Description Repository
FileResolver. open(C req, String name)
Repository
RepositoryResolver. open(C req, String name)
Locate and open a reference to aRepository
.Methods in org.eclipse.jgit.transport.resolver with parameters of type Repository Modifier and Type Method Description ReceivePack
ReceivePackFactory. create(C req, Repository db)
Create and configure a new ReceivePack instance for a repository.UploadPack
UploadPackFactory. create(C req, Repository db)
Create and configure a new UploadPack instance for a repository.void
FileResolver. exportRepository(String name, Repository db)
Add a single repository to the set that is exported by this daemon.protected boolean
FileResolver. 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 Repository Modifier and Type Field Description protected Repository
WorkingTreeIterator. repository
Repository that is the root level being iterated overMethods in org.eclipse.jgit.treewalk with parameters of type Repository Modifier and Type Method Description static TreeWalk
TreeWalk. forPath(Repository db, String path, AnyObjectId... trees)
Open a tree walk and filter to exactly one path.static TreeWalk
TreeWalk. forPath(Repository db, String path, RevTree tree)
Open a tree walk and filter to exactly one path.protected void
WorkingTreeIterator. initRootIterator(Repository repo)
Initialize this iterator for the root level of a repository.Constructors in org.eclipse.jgit.treewalk with parameters of type Repository Constructor Description FileTreeIterator(Repository repo)
Create a new iterator to traverse the work tree and its children.NameConflictTreeWalk(Repository repo)
Create a new tree walker for a given repository.TreeWalk(Repository repo)
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 Repository Modifier and Type Method Description File
FS. findHook(Repository repository, Hook hook)
Tries to find a hook matching the given one in the given repository.protected ProcessResult
FS. internalRunIfPresent(Repository repository, Hook hook, String[] args, PrintStream outRedirect, PrintStream errRedirect, String stdinArgs)
ProcessResult
FS_POSIX. runIfPresent(Repository repository, Hook hook, String[] args, PrintStream outRedirect, PrintStream errRedirect, String stdinArgs)
ProcessResult
FS_Win32_Cygwin. runIfPresent(Repository repository, Hook hook, String[] args, PrintStream outRedirect, PrintStream errRedirect, String stdinArgs)
ProcessResult
FS. runIfPresent(Repository repository, Hook hook, String[] args)
Checks whether the given hook is defined for the given repository, then runs it with the given arguments.ProcessResult
FS. runIfPresent(Repository repository, Hook hook, String[] args, PrintStream outRedirect, PrintStream errRedirect, String stdinArgs)
Checks whether the given hook is defined for the given repository, then runs it with the given arguments.
-