Package | Description |
---|---|
org.eclipse.jgit.api |
High-level API commands (the porcelain of JGit).
|
org.eclipse.jgit.attributes |
Support for reading .gitattributes.
|
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.hooks | |
org.eclipse.jgit.http.server | |
org.eclipse.jgit.http.server.resolver | |
org.eclipse.jgit.internal.ketch |
Distributed consensus system built on Git.
|
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.internal.storage.reftree | |
org.eclipse.jgit.junit | |
org.eclipse.jgit.junit.http | |
org.eclipse.jgit.lfs | |
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.pgm | |
org.eclipse.jgit.pgm.opt | |
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.
|
Modifier and Type | Field and Description |
---|---|
protected Repository |
GitCommand.repo
The repository this command is working with
|
Modifier and Type | Method and Description |
---|---|
Repository |
SubmoduleAddCommand.call()
Executes the
SubmoduleAddCommand
The Repository instance returned by this command needs to be
closed by the caller to free resources held by the Repository
instance. |
Repository |
GitCommand.getRepository() |
Repository |
Git.getRepository() |
Modifier and Type | Method and Description |
---|---|
protected String |
SubmoduleSyncCommand.getHeadBranch(Repository subRepo)
Get branch that HEAD currently points to
|
static Git |
Git.wrap(Repository repo) |
Modifier and Type | Method and Description |
---|---|
FilterCommand |
FilterCommandFactory.create(Repository db,
InputStream in,
OutputStream out)
Create a new
FilterCommand . |
static FilterCommand |
FilterCommandRegistry.createFilterCommand(String filterCommandName,
Repository db,
InputStream in,
OutputStream out)
Creates a new
FilterCommand for the given name. |
Modifier and Type | Method and Description |
---|---|
Repository |
BlameGenerator.getRepository() |
Constructor and Description |
---|
BlameGenerator(Repository repository,
String path)
Create a blame generator for the repository and path (relative to
repository)
|
Modifier and Type | Method and Description |
---|---|
void |
DiffFormatter.setRepository(Repository repository)
Set the repository the formatter can load object contents from.
|
Constructor and Description |
---|
RenameDetector(Repository repo)
Create a new rename detector for the given repository
|
Modifier and Type | Method and Description |
---|---|
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 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 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.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Repository |
RepositoryEvent.getRepository() |
Modifier and Type | Method and Description |
---|---|
void |
RepositoryEvent.setRepository(Repository r)
Set the repository this event occurred on.
|
Modifier and Type | Method and Description |
---|---|
protected byte[] |
RepoCommand.DefaultRemoteReader.readFileFromRepo(Repository repo,
String ref,
String path)
Read a file from the repository
|
Constructor and Description |
---|
CopyFile(Repository repo,
String path,
String src,
String dest) |
ManifestParser(ManifestParser.IncludedFileReader includedReader,
String filename,
String defaultBranch,
String baseUrl,
String groups,
Repository rootRepo) |
RepoCommand(Repository repo) |
Modifier and Type | Method and Description |
---|---|
static CommitMsgHook |
Hooks.commitMsg(Repository repo,
PrintStream outputStream) |
static PostCommitHook |
Hooks.postCommit(Repository repo,
PrintStream outputStream) |
static PreCommitHook |
Hooks.preCommit(Repository repo,
PrintStream outputStream) |
static PrePushHook |
Hooks.prePush(Repository repo,
PrintStream outputStream) |
Constructor and Description |
---|
CommitMsgHook(Repository repo,
PrintStream outputStream) |
PostCommitHook(Repository repo,
PrintStream outputStream) |
PreCommitHook(Repository repo,
PrintStream outputStream) |
PrePushHook(Repository repo,
PrintStream outputStream) |
Modifier and Type | Method and Description |
---|---|
static Repository |
ServletUtils.getRepository(javax.servlet.ServletRequest req)
Get the selected repository from the request.
|
Modifier and Type | Method and Description |
---|---|
void |
AsIsFileService.access(javax.servlet.http.HttpServletRequest req,
Repository db)
Determine if access to any bare file of the repository is allowed.
|
UploadPack |
DefaultUploadPackFactory.create(javax.servlet.http.HttpServletRequest req,
Repository db) |
ReceivePack |
DefaultReceivePackFactory.create(javax.servlet.http.HttpServletRequest req,
Repository db) |
protected static boolean |
AsIsFileService.isEnabled(Repository db)
Determine if
http.getanyfile is enabled in the configuration. |
Modifier and Type | Method and Description |
---|---|
protected abstract Repository |
KetchLeader.openRepository()
Get an instance of the repository for use by a leader thread.
|
Modifier and Type | Method and Description |
---|---|
protected void |
RemoteGitReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req) |
protected void |
LocalReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req) |
protected abstract void |
KetchReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req)
Fetch objects from the remote using the calling thread.
|
KetchLeader |
KetchSystem.createLeader(Repository repo)
Construct the KetchLeader instance of a repository.
|
protected List<KetchReplica> |
KetchSystem.createReplicas(KetchLeader leader,
Repository repo)
Get the collection of replicas for a repository.
|
void |
ReplicaPushRequest.done(Repository repo)
Mark the request as completed without exception.
|
KetchLeader |
KetchLeaderCache.get(Repository repo)
Lookup the leader instance for a given repository.
|
List<ReceiveCommand> |
StageBuilder.makeStageList(Repository git,
ObjectId oldTree,
ObjectId newTree)
Compare two RefTrees and return commands to stage new objects.
|
List<ReceiveCommand> |
StageBuilder.makeStageList(Set<ObjectId> newObjs,
Repository git,
ObjectInserter inserter)
Construct a set of commands to stage objects on a replica.
|
protected Collection<ReceiveCommand> |
KetchReplica.prepareCommit(Repository git,
Map<String,Ref> current,
ObjectId committed)
Build a list of commands to commit
KetchReplica.CommitMethod.ALL_REFS . |
void |
ReplicaPushRequest.setException(Repository repo,
Throwable err)
Mark the request as crashing with a communication error.
|
Modifier and Type | Class and Description |
---|---|
class |
DfsRepository
A Git repository on a DFS.
|
class |
InMemoryRepository
Git repository stored entirely in the local process memory.
|
Modifier and Type | Class and Description |
---|---|
class |
FileRepository
Represents a Git repository.
|
Modifier and Type | Method and Description |
---|---|
Repository |
ReflogWriter.getRepository()
Get repository that reflog is being written for
|
Constructor and Description |
---|
GlobalAttributesNode(Repository repository) |
InfoAttributesNode(Repository repository) |
ReflogWriter(Repository repository)
Create write for repository
|
ReflogWriter(Repository repository,
boolean forceWrite)
Create write for repository
|
Constructor and Description |
---|
PackWriter(Repository repo)
Create writer for specified repository.
|
PackWriter(Repository repo,
ObjectReader reader)
Create writer for specified repository.
|
Constructor and Description |
---|
RefTreeDatabase(Repository repo,
RefDatabase bootstrap)
Create a RefTreeDb for a repository.
|
RefTreeDatabase(Repository repo,
RefDatabase bootstrap,
String txnCommitted)
Create a RefTreeDb for a repository.
|
Modifier and Type | Class and Description |
---|---|
class |
TestRepository<R extends Repository>
Wrapper to make creating test data easier.
|
Modifier and Type | Method and Description |
---|---|
void |
LocalDiskRepositoryTestCase.addRepoToClose(Repository r)
Adds a repository to the list of repositories which is closed at the end
of the tests
|
static boolean |
JGitTestUtil.check(Repository db,
String name) |
static void |
JGitTestUtil.deleteTrashFile(Repository db,
String name) |
static String |
LocalDiskRepositoryTestCase.indexState(Repository repo,
int includedOptions)
Represent the state of the index in one String.
|
static String |
JGitTestUtil.read(Repository db,
String name) |
protected int |
LocalDiskRepositoryTestCase.runHook(Repository db,
File hook,
String... args)
Run a hook script in the repository, returning the exit status.
|
static Path |
JGitTestUtil.writeLink(Repository db,
String link,
String target) |
static File |
JGitTestUtil.writeTrashFile(Repository db,
String name,
String data) |
static File |
JGitTestUtil.writeTrashFile(Repository db,
String subdir,
String name,
String data) |
Modifier and Type | Method and Description |
---|---|
protected TestRepository<Repository> |
HttpTestCase.createTestRepository() |
Modifier and Type | Method and Description |
---|---|
protected static void |
HttpTestCase.fsck(Repository db,
RevObject... tips) |
Constructor and Description |
---|
SimpleHttpServer(Repository repository) |
Constructor and Description |
---|
CleanFilter(Repository db,
InputStream in,
OutputStream out) |
SmudgeFilter(Repository db,
InputStream in,
OutputStream out) |
Modifier and Type | Class and Description |
---|---|
class |
BaseRepositoryBuilder<B extends BaseRepositoryBuilder,R extends Repository>
Base builder to customize repository construction.
|
Modifier and Type | Field and Description |
---|---|
protected Repository |
CLIRepositoryTestCase.db
Test repository, initialized for this test case.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Repository |
RefUpdate.getRepository() |
Repository |
RepositoryCache.Key.open(boolean mustExist)
Called by
RepositoryCache.open(Key) if it doesn't exist yet. |
Repository |
RepositoryCache.FileKey.open(boolean mustExist) |
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.
|
Modifier and Type | Method and Description |
---|---|
static void |
RepositoryCache.close(Repository db)
Close and 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 the
branchName in
repository . |
static void |
RepositoryCache.register(Repository db)
Register one repository into the cache.
|
static void |
RepositoryCache.unregister(Repository db)
Remove a repository from the cache.
|
Constructor and 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,
ObjectId objectId,
WorkingTreeIterator workingTreeIterator)
Construct an Indexdiff
|
IndexDiff(Repository repository,
String revstr,
WorkingTreeIterator workingTreeIterator)
Construct an IndexDiff
|
PersonIdent(Repository repo)
Creates new PersonIdent from config info in repository, with current time.
|
RebaseTodoFile(Repository repo) |
Modifier and Type | Field and Description |
---|---|
protected Repository |
Merger.db
The repository this merger operates on.
|
Modifier and Type | Method and Description |
---|---|
Repository |
Merger.getRepository() |
Modifier and Type | Method and Description |
---|---|
static MergeConfig |
MergeConfig.getConfigForCurrentBranch(Repository repo) |
abstract ThreeWayMerger |
ThreeWayMergeStrategy.newMerger(Repository db) |
ThreeWayMerger |
StrategySimpleTwoWayInCore.newMerger(Repository db) |
ThreeWayMerger |
StrategyResolve.newMerger(Repository db) |
ThreeWayMerger |
StrategyRecursive.newMerger(Repository db) |
Merger |
StrategyOneSided.newMerger(Repository db) |
abstract Merger |
MergeStrategy.newMerger(Repository db)
Create a new merge instance.
|
abstract ThreeWayMerger |
ThreeWayMergeStrategy.newMerger(Repository db,
boolean inCore) |
ThreeWayMerger |
StrategySimpleTwoWayInCore.newMerger(Repository db,
boolean inCore) |
ThreeWayMerger |
StrategyResolve.newMerger(Repository db,
boolean inCore) |
ThreeWayMerger |
StrategyRecursive.newMerger(Repository db,
boolean inCore) |
Merger |
StrategyOneSided.newMerger(Repository db,
boolean inCore) |
abstract Merger |
MergeStrategy.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
Constructor and Description |
---|
Merger(Repository local)
Create a new merge instance for a repository.
|
RecursiveMerger(Repository local)
Normal recursive merge, implies not inCore
|
RecursiveMerger(Repository local,
boolean inCore)
Normal recursive merge when you want a choice of DirCache placement
inCore
|
ResolveMerger(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.
|
Constructor and Description |
---|
NoteMapMerger(Repository db)
Constructs a NoteMapMerger with
DefaultNoteMerger as the merger
for notes and the MergeStrategy.RESOLVE as the strategy for
resolving conflicts on non-notes |
NoteMapMerger(Repository db,
NoteMerger noteMerger,
MergeStrategy nonNotesMergeStrategy)
Constructs a NoteMapMerger with custom
NoteMerger and custom
MergeStrategy . |
Modifier and Type | Field and Description |
---|---|
protected Repository |
TextBuiltin.db
Git repository the command was invoked within.
|
Modifier and Type | Method and Description |
---|---|
Repository |
TextBuiltin.getRepository() |
protected Repository |
CLIGitCommand.openGitDir(String aGitdir) |
protected Repository |
Main.openGitDir(String aGitdir)
Evaluate the
--git-dir option and open the repository. |
Modifier and Type | Method and Description |
---|---|
static List<String> |
CLIGitCommand.execute(String str,
Repository db) |
static CLIGitCommand.Result |
CLIGitCommand.executeRaw(String str,
Repository db) |
static List<String> |
CLIGitCommand.executeUnchecked(String str,
Repository db) |
protected void |
TextBuiltin.init(Repository repository,
String gitDir)
Initialize the command to work with a repository.
|
Constructor and Description |
---|
CLIGitCommand(Repository db) |
Modifier and Type | Method and Description |
---|---|
Repository |
CmdLineParser.getRepository()
Get the repository this parser translates values through.
|
Constructor and Description |
---|
CmdLineParser(Object bean,
Repository repo)
Creates a new command line owner that parses arguments/options and set
them into the given object.
|
Constructor and Description |
---|
PlotWalk(Repository repo)
Create a new revision walker for a given repository.
|
Constructor and Description |
---|
ObjectWalk(Repository repo)
Create a new revision and object walker for a given repository.
|
ObjectWalk(Repository repo,
int depth) |
RevWalk(Repository repo)
Create a new revision walker for a given repository.
|
RevWalk(Repository repo,
int depth) |
Modifier and Type | Method and Description |
---|---|
Repository |
FileRepositoryBuilder.build()
Create a repository matching the configuration in this builder.
|
static Repository |
FileRepositoryBuilder.create(File gitDir)
Convenience factory method to construct a
FileRepository . |
Constructor and Description |
---|
PackConfig(Repository db)
Create a configuration honoring the repository's settings.
|
Modifier and Type | Method and Description |
---|---|
Repository |
SubmoduleWalk.getRepository()
Get repository for current submodule entry
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(File parent,
String path)
Get submodule repository at path
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(Repository parent,
String path)
Get submodule repository
|
Modifier and Type | Method and Description |
---|---|
static 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,
AbstractTreeIterator iterator,
String path)
Create a generator and advance it to the submodule entry at the given
path
|
static SubmoduleWalk |
SubmoduleWalk.forPath(Repository repository,
AnyObjectId treeId,
String path)
Create a generator and advance it to the submodule entry at the given
path
|
static File |
SubmoduleWalk.getSubmoduleDirectory(Repository parent,
String path)
Get submodule directory
|
static String |
SubmoduleWalk.getSubmoduleRemoteUrl(Repository parent,
String url)
Resolve submodule repository URL.
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(Repository parent,
String path)
Get submodule repository
|
Constructor and Description |
---|
SubmoduleWalk(Repository repository)
Create submodule generator
|
Modifier and Type | Field and Description |
---|---|
protected Repository |
Transport.local
The repository this transport fetches into, or pushes out of.
|
Modifier and Type | Method and Description |
---|---|
Repository |
UploadPack.getRepository() |
Repository |
BaseReceivePack.getRepository() |
Modifier and Type | Method and Description |
---|---|
boolean |
TransportProtocol.canHandle(URIish uri,
Repository local,
String remoteName)
Determine if this protocol can handle a particular URI.
|
String |
NonceGenerator.createNonce(Repository db,
long timestamp) |
String |
HMACSHA1NonceGenerator.createNonce(Repository repo,
long timestamp) |
static Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
Collection<RefSpec> specs,
Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form
to RemoteRefUpdate . |
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,
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,
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,
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 |
TestProtocol.open(URIish uri,
Repository local,
String remoteName) |
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.
|
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.
|
URIish |
TestProtocol.register(C req,
Repository remote)
Register a repository connection over the internal test protocol.
|
PushCertificate.NonceStatus |
NonceGenerator.verify(String received,
String sent,
Repository db,
boolean allowSlop,
int slop) |
PushCertificate.NonceStatus |
HMACSHA1NonceGenerator.verify(String received,
String sent,
Repository db,
boolean allowSlop,
int slop) |
Constructor and 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.
|
PushCertificateParser(Repository into,
SignedPushConfig cfg) |
PushCertificateStore(Repository db)
Create a new store backed by the given repository.
|
ReceivePack(Repository into)
Create a new pack receive for an open repository.
|
RemoteRefUpdate(Repository localDb,
Ref 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,
String 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.
|
Modifier and Type | Method and Description |
---|---|
Repository |
RepositoryResolver.open(C req,
String name)
Locate and open a reference to a
Repository . |
Repository |
FileResolver.open(C req,
String name) |
Modifier and Type | Method and Description |
---|---|
UploadPack |
UploadPackFactory.create(C req,
Repository db)
Create and configure a new UploadPack instance for a repository.
|
ReceivePack |
ReceivePackFactory.create(C req,
Repository db)
Create and configure a new ReceivePack 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.
|
Modifier and Type | Field and Description |
---|---|
protected Repository |
WorkingTreeIterator.repository
Repository that is the root level being iterated over
|
Modifier and Type | Method and Description |
---|---|
static TreeWalk |
TreeWalk.forPath(Repository repo,
ObjectReader reader,
String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
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.
|
Constructor and Description |
---|
FileTreeIterator(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.
|
NameConflictTreeWalk(Repository repo)
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.
|
Modifier and Type | Method and Description |
---|---|
File |
FS_Win32_Cygwin.findHook(Repository repository,
String hookName) |
File |
FS_POSIX.findHook(Repository repository,
String hookName) |
File |
FS.findHook(Repository repository,
String hookName)
Tries to find a hook matching the given one in the given repository.
|
protected ProcessResult |
FS.internalRunHookIfPresent(Repository repository,
String hookName,
String[] args,
PrintStream outRedirect,
PrintStream errRedirect,
String stdinArgs)
|
ProcessResult |
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.
|
ProcessResult |
FS_Win32_Cygwin.runHookIfPresent(Repository repository,
String hookName,
String[] args,
PrintStream outRedirect,
PrintStream errRedirect,
String stdinArgs) |
ProcessResult |
FS_POSIX.runHookIfPresent(Repository repository,
String hookName,
String[] args,
PrintStream outRedirect,
PrintStream errRedirect,
String stdinArgs) |
ProcessResult |
FS.runHookIfPresent(Repository repository,
String hookName,
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.
|
Copyright © 2017 Eclipse JGit Project. All rights reserved.