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).
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 TypeFieldDescriptionprivate final Repository
Git.repo
The git repository this class is interacting withprotected final Repository
GitCommand.repo
The repository this command is working withMethods in org.eclipse.jgit.api that return RepositoryModifier and TypeMethodDescriptionSubmoduleAddCommand.call()
private Repository
SubmoduleUpdateCommand.getOrCloneSubmodule
(SubmoduleWalk generator, String url) Git.getRepository()
Get repositoryGitCommand.getRepository()
Get repository this command is working onprivate Repository
CloneCommand.init()
Methods in org.eclipse.jgit.api with parameters of type RepositoryModifier and TypeMethodDescriptionprivate void
CloneCommand.addMergeConfig
(Repository clonedRepo, Ref head) private void
ApplyCommand.apply
(Repository repository, String path, DirCache cache, File f, FileHeader fh) private void
ApplyCommand.applyBinary
(Repository repository, String path, File f, FileHeader fh, ApplyCommand.StreamSupplier loader, ObjectId id, DirCacheCheckout.CheckoutMetadata checkOut) private void
ApplyCommand.applyText
(Repository repository, String path, RawText rt, File f, FileHeader fh, DirCacheCheckout.CheckoutMetadata checkOut) private void
CloneCommand.checkout
(Repository clonedRepo, FetchResult result) private void
CloneCommand.cloneSubmodules
(Repository clonedRepo) (package private) static void
AddNoteCommand.commitNoteMap
(Repository r, String ref, RevWalk walk, NoteMap map, RevCommit notesCommit, ObjectInserter inserter, String msg) private FetchResult
CloneCommand.fetch
(Repository clonedRepo, URIish u) private InputStream
ApplyCommand.filterClean
(Repository repository, String path, InputStream fromFile, boolean convertCrLf, String filterCommand) protected String
SubmoduleSyncCommand.getHeadBranch
(Repository subRepo) Get branch that HEAD currently points toprivate RevCommit
CloneCommand.parseCommit
(Repository clonedRepo, Ref ref) static Git
Git.wrap
(Repository repo) Wrap repositoryConstructors in org.eclipse.jgit.api with parameters of type RepositoryModifierConstructorDescriptionAddCommand
(Repository repo) Constructor for AddCommandprotected
AddNoteCommand
(Repository repo) Constructor for AddNoteCommand(package private)
ApplyCommand
(Repository repo) Constructs the command.ArchiveCommand
(Repository repo) Constructor for ArchiveCommandBlameCommand
(Repository repo) Constructor for BlameCommandprotected
CheckoutCommand
(Repository repo) Constructor for CheckoutCommandprotected
CherryPickCommand
(Repository repo) Constructor for CherryPickCommandprotected
CleanCommand
(Repository repo) Constructor for CleanCommandprotected
CommitCommand
(Repository repo) Constructor for CommitCommandprotected
Constructor for CreateBranchCommandprotected
Constructor for DeleteBranchCommandprotected
DeleteTagCommand
(Repository repo) Constructor for DeleteTagCommandprotected
DescribeCommand
(Repository repo) Constructor for DescribeCommand.protected
DiffCommand
(Repository repo) Constructor for DiffCommandprotected
FetchCommand
(Repository repo) Constructor for FetchCommand.protected
Constructor for GarbageCollectCommand.Git
(Repository repo) Construct a newGit
object which can interact with the specified git repository.(package private)
Git
(Repository repo, boolean closeRepo) protected
GitCommand
(Repository repo) Creates a new command which interacts with a single repositoryprotected
ListBranchCommand
(Repository repo) Constructor for ListBranchCommand.protected
ListNotesCommand
(Repository repo) Constructor for ListNotesCommand.protected
ListTagCommand
(Repository repo) Constructor for ListTagCommand.protected
LogCommand
(Repository repo) Constructor for LogCommand.LsRemoteCommand
(Repository repo) Constructor for LsRemoteCommandprotected
MergeCommand
(Repository repo) Constructor for MergeCommand.protected
NameRevCommand
(Repository repo) Create a new name-rev command.protected
PullCommand
(Repository repo) Constructor for PullCommand.protected
PushCommand
(Repository repo) Constructor for PushCommand.protected
RebaseCommand
(Repository repo) Constructor for RebaseCommand.ReflogCommand
(Repository repo) Constructor for ReflogCommand.protected
RemoteAddCommand
(Repository repo) Constructor for RemoteAddCommand.protected
RemoteListCommand
(Repository repo) Constructor for RemoteListCommand.protected
Constructor for RemoteRemoveCommand.protected
Constructor for RemoteSetUrlCommand.protected
RemoveNoteCommand
(Repository repo) Constructor for RemoveNoteCommand.protected
Constructor for RenameBranchCommand.ResetCommand
(Repository repo) Constructor for ResetCommand.protected
RevertCommand
(Repository repo) Constructor for RevertCommand.RmCommand
(Repository repo) Constructor for RmCommand.protected
ShowNoteCommand
(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 commandprotected
StatusCommand
(Repository repo) Constructor for StatusCommand.Constructor for SubmoduleAddCommand.Constructor of SubmoduleDeinitCommandConstructor for SubmoduleInitCommand.Constructor for SubmoduleStatusCommand.Constructor for SubmoduleSyncCommand.Constructor for SubmoduleUpdateCommand.protected
TagCommand
(Repository repo) Constructor for TagCommand.protected
TransportCommand
(Repository repo) Constructor for TransportCommand.Creates a newVerifySignatureCommand
for 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 FilterCommand
FilterCommandRegistry.createFilterCommand
(String filterCommandName, Repository db, InputStream in, OutputStream out) Create a newFilterCommand
for the given name. -
Uses of Repository in org.eclipse.jgit.blame
Fields in org.eclipse.jgit.blame declared as RepositoryModifier and TypeFieldDescriptionprivate final Repository
BlameGenerator.repository
private Repository
Candidate.sourceRepository
repository used for LFS blob handlingMethods in org.eclipse.jgit.blame that return RepositoryMethods in org.eclipse.jgit.blame with parameters of type RepositoryModifier and TypeMethodDescription(package private) Candidate
Candidate.create
(Repository repo, RevCommit commit, PathFilter path) (package private) Candidate
Candidate.ReverseCandidate.create
(Repository repo, RevCommit commit, PathFilter path) BlameGenerator.getHeads
(Repository repo, ObjectId head) Constructors 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)(package private)
BlobCandidate
(Repository repo, String name, PathFilter path) (package private)
Candidate
(Repository repo, RevCommit commit, PathFilter path) (package private)
HeadCandidate
(Repository repo, PathFilter path, List<RevCommit> parents) (package private)
ReverseCandidate
(Repository repo, ReverseWalk.ReverseCommit commit, PathFilter path) (package private)
ReverseWalk
(Repository repo) -
Uses of Repository in org.eclipse.jgit.diff
Fields in org.eclipse.jgit.diff declared as RepositoryMethods in org.eclipse.jgit.diff with parameters of type RepositoryModifier and TypeMethodDescriptionvoid
DiffFormatter.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
Fields in org.eclipse.jgit.dircache declared as RepositoryModifier and TypeFieldDescriptionprivate Repository
DirCacheCheckout.repo
private Repository
DirCache.repository
Repository containing this indexMethods in org.eclipse.jgit.dircache with parameters of type RepositoryModifier and TypeMethodDescriptionstatic void
DirCacheCheckout.checkoutEntry
(Repository repo, DirCacheEntry entry, ObjectReader or) Deprecated.static void
DirCacheCheckout.checkoutEntry
(Repository repo, DirCacheEntry entry, ObjectReader or, boolean deleteRecursive, DirCacheCheckout.CheckoutMetadata checkoutMetadata) Updates the file in the working tree with content and mode from an entry in the index.static void
DirCacheCheckout.getContent
(Repository repo, String path, DirCacheCheckout.CheckoutMetadata checkoutMetadata, ObjectLoader ol, WorkingTreeOptions opt, OutputStream os) Return filtered content for a specific object (blob).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.private static void
DirCacheCheckout.runBuiltinFilterCommand
(Repository repo, DirCacheCheckout.CheckoutMetadata checkoutMetadata, ObjectLoader ol, OutputStream channel) private static void
DirCacheCheckout.runExternalFilterCommand
(Repository repo, String path, DirCacheCheckout.CheckoutMetadata checkoutMetadata, ObjectLoader ol, OutputStream channel) Constructors in org.eclipse.jgit.dircache with parameters of type RepositoryModifierConstructorDescriptionDirCacheCheckout
(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
Fields in org.eclipse.jgit.events declared as RepositoryMethods 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 TypeMethodDescriptionvoid
RepositoryEvent.setRepository
(Repository r) Set the repository this event occurred on. -
Uses of Repository in org.eclipse.jgit.gitrepo
Fields in org.eclipse.jgit.gitrepo declared as RepositoryModifier and TypeFieldDescriptionprivate final Repository
BareSuperprojectWriter.repo
private Repository
RegularSuperprojectWriter.repo
(package private) final Repository
RepoProject.ReferenceFile.repo
private final Repository
ManifestParser.rootRepo
Methods in org.eclipse.jgit.gitrepo with parameters of type RepositoryModifier and TypeMethodDescriptionprivate static String
RegularSuperprojectWriter.findRef
(String ref, Repository repo) Constructors in org.eclipse.jgit.gitrepo with parameters of type RepositoryModifierConstructorDescription(package private)
BareSuperprojectWriter
(Repository repo, URI targetUri, String targetBranch, PersonIdent author, RepoCommand.RemoteReader callback, BareSuperprojectWriter.BareWriterConfig config, List<BareSuperprojectWriter.ExtraContent> extraContents) CopyFile
(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) (package private)
RegularSuperprojectWriter
(Repository repo, ProgressMonitor monitor) RepoCommand
(Repository repo) Constructor for RepoCommand -
Uses of Repository in org.eclipse.jgit.hooks
Fields in org.eclipse.jgit.hooks declared as RepositoryMethods in org.eclipse.jgit.hooks that return RepositoryModifier and TypeMethodDescriptionprotected Repository
GitHook.getRepository()
Get the repositoryMethods in org.eclipse.jgit.hooks with parameters of type RepositoryModifier and TypeMethodDescriptionstatic CommitMsgHook
Hooks.commitMsg
(Repository repo, PrintStream outputStream) Create commit-msg hook for the given repository with the default error streamstatic CommitMsgHook
Hooks.commitMsg
(Repository repo, PrintStream outputStream, PrintStream errorStream) Create commit-msg hook for the given repositorystatic PostCommitHook
Hooks.postCommit
(Repository repo, PrintStream outputStream) Create post-commit hook for the given repository with the default error streamstatic PostCommitHook
Hooks.postCommit
(Repository repo, PrintStream outputStream, PrintStream errorStream) Create post-commit hook for the given repositorystatic PreCommitHook
Hooks.preCommit
(Repository repo, PrintStream outputStream) Create pre-commit hook for the given repository with the default error streamstatic PreCommitHook
Hooks.preCommit
(Repository repo, PrintStream outputStream, PrintStream errorStream) Create pre-commit hook for the given repositorystatic PrePushHook
Hooks.prePush
(Repository repo, PrintStream outputStream) Create pre-push hook for the given repository with the default error streamstatic PrePushHook
Hooks.prePush
(Repository repo, PrintStream outputStream, PrintStream errorStream) Create pre-push hook for the given repositoryConstructors in org.eclipse.jgit.hooks with parameters of type RepositoryModifierConstructorDescriptionprotected
CommitMsgHook
(Repository repo, PrintStream outputStream) Constructor for CommitMsgHookprotected
CommitMsgHook
(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for CommitMsgHookprotected
GitHook
(Repository repo, OutputStream outputStream) Constructor for GitHook.protected
GitHook
(Repository repo, OutputStream outputStream, OutputStream errorStream) Constructor for GitHookprotected
PostCommitHook
(Repository repo, PrintStream outputStream) Constructor for PostCommitHookprotected
PostCommitHook
(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PostCommitHookprotected
PreCommitHook
(Repository repo, PrintStream outputStream) Constructor for PreCommitHookprotected
PreCommitHook
(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PreCommitHookprotected
PrePushHook
(Repository repo, PrintStream outputStream) Constructor for PrePushHookprotected
PrePushHook
(Repository repo, PrintStream outputStream, PrintStream errorStream) Constructor for PrePushHook -
Uses of Repository in org.eclipse.jgit.http.server
Methods in org.eclipse.jgit.http.server that return RepositoryModifier and TypeMethodDescriptionstatic Repository
ServletUtils.getRepository
(javax.servlet.ServletRequest req) Get the selected repository from the request.Methods in org.eclipse.jgit.http.server with parameters of type RepositoryModifier and TypeMethodDescriptionprotected void
ReceivePackServlet.InfoRefs.begin
(javax.servlet.http.HttpServletRequest req, Repository db) protected abstract void
SmartServiceInfoRefs.begin
(javax.servlet.http.HttpServletRequest req, Repository db) Begin service.protected void
UploadPackServlet.InfoRefs.begin
(javax.servlet.http.HttpServletRequest req, Repository db) (package private) static String
ServletUtils.identify
(Repository git) private static boolean
IsLocalFilter.isLocal
(Repository db) private void
ReceivePackServlet.log
(Repository git, Throwable e) private void
UploadPackServlet.log
(Repository git, Throwable e) -
Uses of Repository in org.eclipse.jgit.http.server.resolver
Methods in org.eclipse.jgit.http.server.resolver with parameters of type RepositoryModifier and TypeMethodDescriptionvoid
AsIsFileService.access
(javax.servlet.http.HttpServletRequest req, Repository db) Determine if access to any bare file of the repository is allowed.DefaultReceivePackFactory.create
(javax.servlet.http.HttpServletRequest req, Repository db) Create and configure a new ReceivePack instance for a repository.DefaultUploadPackFactory.create
(javax.servlet.http.HttpServletRequest req, Repository db) Create and configure a new UploadPack instance for a repository.private static ReceivePack
DefaultReceivePackFactory.createFor
(javax.servlet.http.HttpServletRequest req, Repository db, String user) protected static boolean
AsIsFileService.isEnabled
(Repository db) Determine ifhttp.getanyfile
is enabled in the configuration. -
Uses of Repository in org.eclipse.jgit.internal.diffmergetool
Constructors in org.eclipse.jgit.internal.diffmergetool with parameters of type RepositoryModifierConstructorDescriptionDiffTools
(Repository repo) Creates the external diff-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 TypeClassDescriptionclass
A Git repository on a DFS.class
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.fileFields in org.eclipse.jgit.internal.storage.file declared as RepositoryModifier and TypeFieldDescription(package private) final Repository
GlobalAttributesNode.repository
(package private) final Repository
InfoAttributesNode.repository
Methods in org.eclipse.jgit.internal.storage.file that return RepositoryModifier and TypeMethodDescriptionprotected Repository
FileReftableDatabase.FileReftableRefUpdate.getRepository()
(package private) Repository
RefDirectory.getRepository()
protected Repository
RefDirectoryUpdate.getRepository()
Get the repository storing the database's objects.Methods in org.eclipse.jgit.internal.storage.file with parameters of type RepositoryModifier and TypeMethodDescriptionprivate static void
FileReftableDatabase.writeConvertTable
(Repository repo, ReftableWriter w, boolean writeLogs) Constructors in org.eclipse.jgit.internal.storage.file with parameters of type RepositoryModifierConstructorDescriptionprotected
Constructor.(package private)
FileReftableBatchRefUpdate
(FileReftableDatabase db, Repository repository) GlobalAttributesNode
(Repository repository) Constructor for GlobalAttributesNode.InfoAttributesNode
(Repository repository) Constructor for InfoAttributesNode.(package private)
ReflogReaderImpl
(Repository db, String refname) -
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
Fields in org.eclipse.jgit.internal.storage.reftable declared as RepositoryConstructors in org.eclipse.jgit.internal.storage.reftable with parameters of type RepositoryModifierConstructorDescriptionprotected
ReftableBatchRefUpdate
(RefDatabase refdb, ReftableDatabase reftableDb, Lock lock, Repository repository) Initialize.Create a configuration honoring the repository's settings. -
Uses of Repository in org.eclipse.jgit.lfs
Fields in org.eclipse.jgit.lfs declared as RepositoryMethods in org.eclipse.jgit.lfs with parameters of type RepositoryModifier and TypeMethodDescriptionBuiltinLFS.applyCleanFilter
(Repository db, InputStream input, long length, Attribute attribute) BuiltinLFS.applySmudgeFilter
(Repository db, ObjectLoader loader, Attribute attribute) static TemporaryBuffer
LfsBlobFilter.cleanLfsBlob
(Repository db, InputStream originalContent) Run the LFS clean filter on the given stream and return a stream to the LFS pointer file buffer.static Collection<Path>
SmudgeFilter.downloadLfsResource
(Lfs lfs, Repository db, LfsPointer... res) Download content which is hosted on a LFS serverBuiltinLFS.getPrePushHook
(Repository repo, PrintStream outputStream) BuiltinLFS.getPrePushHook
(Repository repo, PrintStream outputStream, PrintStream errorStream) boolean
BuiltinLFS.isEnabled
(Repository db) private boolean
BuiltinLFS.isEnabled
(Repository db, Attribute attribute) InstallBuiltinLfsCommand.setRepository
(Repository repo) Set the repository to install LFS forstatic ObjectLoader
LfsBlobFilter.smudgeLfsBlob
(Repository db, ObjectLoader loader) In case the givenObjectLoader
points to a LFS pointer file replace the loader with one pointing to the LFS media file contents.Constructors in org.eclipse.jgit.lfs with parameters of type RepositoryModifierConstructorDescriptionCleanFilter
(Repository db, InputStream in, OutputStream out) Constructor for CleanFilter.Lfs
(Repository db) Constructor for Lfs.LfsPrePushHook
(Repository repo, PrintStream outputStream) LfsPrePushHook
(Repository repo, PrintStream outputStream, PrintStream errorStream) private
SmudgeFilter
(InputStream in, OutputStream out, Repository db) SmudgeFilter
(Repository db, InputStream in, OutputStream out) Constructor for SmudgeFilter. -
Uses of Repository in org.eclipse.jgit.lfs.internal
Fields in org.eclipse.jgit.lfs.internal declared as RepositoryMethods in org.eclipse.jgit.lfs.internal with parameters of type RepositoryModifier and TypeMethodDescriptionprivate static String
LfsConnectionFactory.discoverLfsUrl
(Repository db, String purpose, Map<String, String> additionalHeaders, String remoteUrl) static HttpConnection
LfsConnectionFactory.getLfsConnection
(Repository db, String method, String purpose) Determine URL of LFS server by looking into config parameters lfs.url, lfs.[remote].url or remote.[remote].url.static HttpConnection
LfsConnectionFactory.getLfsContentConnection
(Repository repo, Protocol.Action action, String method) Create a connection for the specifiedProtocol.Action
.private static String
Get LFS Server URL.private static Protocol.ExpiringAction
LfsConnectionFactory.getSshAuthentication
(Repository db, String purpose, String remoteUrl, URIish u) Constructors in org.eclipse.jgit.lfs.internal with parameters of type Repository -
Uses of Repository in org.eclipse.jgit.lib
Classes in org.eclipse.jgit.lib with type parameters of type RepositoryModifier and TypeClassDescriptionclass
BaseRepositoryBuilder<B extends BaseRepositoryBuilder,
R extends Repository> Base builder to customize repository construction.Fields in org.eclipse.jgit.lib declared as RepositoryModifier and TypeFieldDescriptionprivate Repository
RebaseTodoFile.repo
private final Repository
IndexDiff.repository
Fields in org.eclipse.jgit.lib with type parameters of type RepositoryModifier and TypeFieldDescriptionprivate final Map<RepositoryCache.Key,
Repository> RepositoryCache.cacheMap
Methods in org.eclipse.jgit.lib that return RepositoryModifier and TypeMethodDescriptionprotected abstract Repository
RefUpdate.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 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.private Repository
RepositoryCache.openRepository
(RepositoryCache.Key location, boolean mustExist) private Repository
RepositoryCache.unregisterRepository
(RepositoryCache.Key location) Methods in org.eclipse.jgit.lib with parameters of type RepositoryModifier and TypeMethodDescriptionprivate static AbbrevConfig
AbbrevConfig.auto
(Repository repo) An appropriate value is computed based on the approximate number of packed objects in a repository, which hopefully is enough for abbreviated object names to stay unique for some time.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
.IndexDiff.WorkingTreeIteratorFactory.getWorkingTreeIterator
(Repository repo) (package private) static boolean
RepositoryCache.isCached
(Repository repo) private boolean
RepositoryCache.isExpired
(Repository db) static BranchTrackingStatus
BranchTrackingStatus.of
(Repository repository, String branchName) Compute the tracking status for thebranchName
inrepository
.static AbbrevConfig
AbbrevConfig.parseFromConfig
(Repository repo) Parse string value of core.abbrev git option for a given repositoryprivate static byte[]
BlobBasedConfig.read
(Repository db, AnyObjectId blobId) private static byte[]
BlobBasedConfig.read
(Repository db, AnyObjectId treeish, String path) static void
RepositoryCache.register
(Repository db) Register one repository into the cache.private void
RepositoryCache.registerRepository
(RepositoryCache.Key location, Repository db) static void
RepositoryCache.unregister
(Repository db) Remove a repository from the cache.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.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 Repository
Merger.db
The 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 Repository
Merger.nonNullRepo()
Get non-null repository instanceMethods in org.eclipse.jgit.merge with parameters of type RepositoryModifier and TypeMethodDescriptionstatic MergeConfig
MergeConfig.getConfigForCurrentBranch
(Repository repo) Get merge configuration for the current branch of the repositoryabstract Merger
MergeStrategy.newMerger
(Repository db) Create a new merge instance.abstract Merger
MergeStrategy.newMerger
(Repository db, boolean inCore) Create a new merge instance.StrategyOneSided.newMerger
(Repository db) Create a new merge instance.StrategyOneSided.newMerger
(Repository db, boolean inCore) Create a new merge instance.StrategyRecursive.newMerger
(Repository db) Create a new merge instance.StrategyRecursive.newMerger
(Repository db, boolean inCore) Create a new merge instance.StrategyResolve.newMerger
(Repository db) Create a new merge instance.StrategyResolve.newMerger
(Repository db, boolean inCore) Create a new merge instance.StrategySimpleTwoWayInCore.newMerger
(Repository db) Create a new merge instance.StrategySimpleTwoWayInCore.newMerger
(Repository db, boolean inCore) Create a new merge instance.abstract ThreeWayMerger
ThreeWayMergeStrategy.newMerger
(Repository db) Create a new merge instance.abstract ThreeWayMerger
ThreeWayMergeStrategy.newMerger
(Repository db, boolean inCore) Create a new merge instance.Constructors in org.eclipse.jgit.merge with parameters of type RepositoryModifierConstructorDescription(package private)
InCoreMerger
(Repository local) protected
Merger
(Repository local) Create a new merge instance for a repository.protected
OneSide
(Repository local, int index) protected
RecursiveMerger
(Repository local) Normal recursive merge, implies not inCoreprotected
RecursiveMerger
(Repository local, boolean inCore) Normal recursive merge when you want a choice of DirCache placement inCoreprotected
ResolveMerger
(Repository local) Constructor for ResolveMerger.protected
ResolveMerger
(Repository local, boolean inCore) Constructor for ResolveMerger.protected
ThreeWayMerger
(Repository local) Create a new merge instance for a repository.protected
ThreeWayMerger
(Repository local, boolean inCore) Create a new merge instance for a repository. -
Uses of Repository in org.eclipse.jgit.notes
Fields in org.eclipse.jgit.notes declared as RepositoryConstructors in org.eclipse.jgit.notes with parameters of type RepositoryModifierConstructorDescriptionConstructs 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.pgm
Fields in org.eclipse.jgit.pgm declared as RepositoryModifier and TypeFieldDescriptionprotected Repository
TextBuiltin.db
Git repository the command was invoked within.Methods in org.eclipse.jgit.pgm that return RepositoryModifier and TypeMethodDescriptionTextBuiltin.getRepository()
Get the repositoryprotected Repository
Main.openGitDir
(String aGitdir) Evaluate the--git-dir
option and open the repository.Methods in org.eclipse.jgit.pgm with parameters of type RepositoryModifier and TypeMethodDescriptionprivate Charset
TextBuiltin.getLogOutputEncodingCharset
(Repository repository) Get the log output encoding specified in the repository'si18n.logOutputEncoding
configuration.protected void
Diff.init
(Repository repository, String gitDir) Initialize the command to work with a repository.protected void
DiffTool.init
(Repository repository, String gitDir) protected void
Log.init
(Repository repository, String gitDir) Initialize the command to work with a repository.protected void
Show.init
(Repository repository, String gitDir) Initialize the command to work with a repository.protected void
TextBuiltin.init
(Repository repository, String gitDir) Initialize the command to work with a repository.void
TextBuiltin.initRaw
(Repository repository, String gitDir, InputStream input, OutputStream output, OutputStream error) Initializes the command to work with a repository, including setting the output and error streams. -
Uses of Repository in org.eclipse.jgit.pgm.debug
Methods in org.eclipse.jgit.pgm.debug with parameters of type RepositoryModifier and TypeMethodDescriptionprivate void
DiffAlgorithms.run
(Repository repo) private void
TextHashFunctions.run
(Repository repo) -
Uses of Repository in org.eclipse.jgit.pgm.opt
Fields in org.eclipse.jgit.pgm.opt declared as RepositoryMethods in org.eclipse.jgit.pgm.opt that return RepositoryModifier and TypeMethodDescriptionCmdLineParser.getRepository()
Get the repository this parser translates values through.Constructors in org.eclipse.jgit.pgm.opt with parameters of type RepositoryModifierConstructorDescriptionCmdLineParser
(Object bean, Repository repo) Creates a new command line owner that parses arguments/options and set them into the given object. -
Uses of Repository in org.eclipse.jgit.revplot
Fields in org.eclipse.jgit.revplot declared as RepositoryConstructors 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) 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 RepositoryModifier and TypeMethodDescriptionFileRepositoryBuilder.build()
Create a repository matching the configuration in this builder.static Repository
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 RepositoryModifierConstructorDescriptionPackConfig
(Repository db) Create a configuration honoring the repository's settings. -
Uses of Repository in org.eclipse.jgit.submodule
Fields in org.eclipse.jgit.submodule declared as RepositoryMethods in org.eclipse.jgit.submodule that return RepositoryModifier and TypeMethodDescriptionSubmoduleWalk.getRepository()
Get repository for current submodule entrystatic Repository
SubmoduleWalk.getSubmoduleRepository
(File parent, String path) Get submodule repository at pathstatic Repository
SubmoduleWalk.getSubmoduleRepository
(File parent, String path, FS fs) Get submodule repository at path, using the specified file system abstractionstatic Repository
SubmoduleWalk.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 Repository
SubmoduleWalk.getSubmoduleRepository
(Repository parent, String path) Get submodule repositoryMethods in org.eclipse.jgit.submodule that return types with arguments of type RepositoryModifier and TypeMethodDescriptionprivate BaseRepositoryBuilder<?,
? extends Repository> SubmoduleWalk.getBuilder()
Methods in org.eclipse.jgit.submodule with parameters of type RepositoryModifier and TypeMethodDescriptionstatic boolean
SubmoduleWalk.containsGitModulesFile
(Repository repository) Checks whether the working tree 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 repositoryMethod parameters in org.eclipse.jgit.submodule with type arguments of type RepositoryModifier and TypeMethodDescriptionstatic Repository
SubmoduleWalk.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 TypeFieldDescriptionprivate final Repository
BundleWriter.db
private final Repository
PushCertificateParser.db
Database we write the push certificate into.private final Repository
PushCertificateStore.db
private final Repository
ReceivePack.db
Database we write the stored objects into.private final Repository
UploadPack.db
Database we read the objects from.protected final Repository
BasePackConnection.local
The repository this transport fetches into, or pushes out of.protected final Repository
Transport.local
The repository this transport fetches into, or pushes out of.(package private) final Repository
WalkFetchConnection.local
The repository this transport fetches into, or pushes out of.private final Repository
WalkPushConnection.local
The repository this transport pushes out of.private final Repository
RemoteRefUpdate.localDb
(package private) final Repository
TestProtocol.Handle.remote
private Repository
ConnectivityChecker.ConnectivityCheckInfo.repository
private Repository
RefAdvertiser.repository
Methods in org.eclipse.jgit.transport that return RepositoryModifier and TypeMethodDescriptionConnectivityChecker.ConnectivityCheckInfo.getRepository()
ReceivePack.getRepository()
Get the repository this receive completes into.final Repository
UploadPack.getRepository()
Get the repository this upload is reading from.private Repository
TransportLocal.openRepo()
(package private) Repository
Daemon.openRepository
(DaemonClient client, String name) Methods in org.eclipse.jgit.transport with parameters of type RepositoryModifier and TypeMethodDescriptionboolean
TransportProtocol.canHandle
(URIish uri, Repository local, String remoteName) Determine if this protocol can handle a particular URI.HMACSHA1NonceGenerator.createNonce
(Repository repo, long timestamp) Create nonce to be signed by the pusherNonceGenerator.createNonce
(Repository db, long timestamp) Create nonce to be signed by the pusher(package private) ReceivePack
TransportLocal.createReceivePack
(Repository dst) (package private) UploadPack
TransportLocal.createUploadPack
(Repository dst) (package private) abstract void
DaemonService.execute
(DaemonClient client, Repository db, Collection<String> extraParameters) private static Collection<RefSpec>
Transport.expandPushWildcardsFor
(Repository db, Collection<RefSpec> specs) static Collection<RemoteRefUpdate>
Transport.findRemoteRefUpdatesFor
(Repository db, Collection<RefSpec> specs, Collection<RefSpec> fetchSpecs) Convert push remote refs update specification fromRefSpec
form toRemoteRefUpdate
.static Collection<RemoteRefUpdate>
Transport.findRemoteRefUpdatesFor
(Repository db, Collection<RefSpec> specs, Map<String, RefLeaseSpec> leases, Collection<RefSpec> fetchSpecs) Convert push remote refs update specification fromRefSpec
form toRemoteRefUpdate
.AbstractAdvertiseRefsHook.getAdvertisedHaves
(Repository repository, RevWalk revWalk) Get the additional haves to advertise.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.private boolean
DaemonService.isEnabledFor
(Repository db) TestProtocol.open
(URIish uri, Repository local, String remoteName) Open a Transport instance to the other repository.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.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.void
ConnectivityChecker.ConnectivityCheckInfo.setRepository
(Repository repository) HMACSHA1NonceGenerator.verify
(String received, String sent, Repository db, boolean allowSlop, int slop) Verify trustworthiness of the received nonce.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.(package private)
Handle
(C req, Repository remote) protected
HttpTransport
(Repository local, URIish uri) Create a new transport instance.InternalFetchConnection
(PackTransport transport, UploadPackFactory<C> uploadPackFactory, C req, Repository remote) Constructor for InternalFetchConnection.InternalPushConnection
(PackTransport transport, ReceivePackFactory<C> receivePackFactory, C req, Repository remote) Constructor for InternalPushConnection.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.(package private)
RemoteRefUpdate
(Repository localDb, boolean forceUpdate, Collection<RefSpec> fetchSpecs) Creates a "placeholder" update for the "matching" RefSpec ":".RemoteRefUpdate
(Repository localDb, String srcRef, String remoteName, boolean forceUpdate, String localName, ObjectId expectedOldObjectId) Construct remote ref update request by providing an update specification.private
RemoteRefUpdate
(Repository localDb, String srcRef, ObjectId srcId, String remoteName, boolean forceUpdate, String localName, Collection<RefSpec> fetchSpecs, ObjectId expectedOldObjectId) 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.protected
SshTransport
(Repository local, URIish uri) Create a new transport instance.protected
TcpTransport
(Repository local, URIish uri) Create a new transport instance.Create a configuration honoring the repository's settings.protected
Transport
(Repository local, URIish uri) Create a new transport instance.(package private)
TransportAmazonS3
(Repository local, URIish uri) (package private)
TransportBundleFile
(Repository local, URIish uri, File bundlePath) TransportBundleStream
(Repository db, URIish uri, InputStream in) Create a new transport to fetch objects from a streamed bundle.(package private)
TransportGitAnon
(Repository local, URIish uri) (package private)
TransportGitSsh
(Repository local, URIish uri) (package private)
TransportHttp
(Repository local, URIish uri) (package private)
TransportInternal
(Repository local, URIish uri, TestProtocol<C>.Handle handle) (package private)
TransportLocal
(Repository local, URIish uri, File gitDir) (package private)
TransportSftp
(Repository local, URIish uri) UploadPack
(Repository copyFrom) Create a new pack upload for an open repository. -
Uses of Repository in org.eclipse.jgit.transport.resolver
Fields in org.eclipse.jgit.transport.resolver with type parameters of type RepositoryMethods in org.eclipse.jgit.transport.resolver that return RepositoryModifier and TypeMethodDescriptionLocate and open a reference to aRepository
.Locate and open a reference to aRepository
.Methods 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.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 RepositoryModifier and TypeFieldDescriptionprotected Repository
WorkingTreeIterator.repository
Repository that is the root level being iterated over(package private) final Repository
WorkingTreeIterator.RootIgnoreNode.repository
Methods in org.eclipse.jgit.treewalk that return RepositoryModifier and TypeMethodDescriptionWorkingTreeIterator.getRepository()
Retrieves theRepository
thisWorkingTreeIterator
operates on.Methods in org.eclipse.jgit.treewalk with parameters of type RepositoryModifier and TypeMethodDescriptionstatic 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.static TreeWalk
TreeWalk.forPath
(Repository repo, ObjectReader reader, String path, AnyObjectId... trees) 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 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.(package private)
RootIgnoreNode
(WorkingTreeIterator.Entry entry, Repository 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.private
TreeWalk
(Repository repo, ObjectReader or, boolean closeReader) -
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 Attributes
LfsFactory.getAttributesForPath
(Repository db, String path) static Attributes
LfsFactory.getAttributesForPath
(Repository db, String path, RevCommit commit) Get attributes for given path and commitprivate File
FS.getHooksDirectory
(Repository repository) LfsFactory.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.private File
FS.getRunDirectory
(Repository repository, String hookName) protected ProcessResult
FS.internalRunHookIfPresent
(Repository repository, String hookName, String[] args, OutputStream outRedirect, OutputStream errRedirect, String stdinArgs) boolean
LfsFactory.isEnabled
(Repository db) FS_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) 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) 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)
DirCacheCheckout.checkoutEntry(Repository, DirCacheEntry, ObjectReader, boolean, CheckoutMetadata)
instead