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() |
Repository |
GitCommand.getRepository() |
Repository |
Git.getRepository() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
SubmoduleSyncCommand.getHeadBranch(Repository subRepo)
Get branch that HEAD currently points to
|
static Git |
Git.wrap(Repository repo) |
Modifier and Type | Method and Description |
---|---|
Repository |
BlameGenerator.getRepository() |
Constructor and Description |
---|
BlameGenerator(Repository repository,
java.lang.String path)
Create a blame generator for the repository and path
|
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 repository,
java.io.File f,
DirCacheEntry entry)
Updates the file in the working tree with content and mode from an entry
in the index.
|
static void |
DirCacheCheckout.checkoutEntry(Repository repo,
java.io.File f,
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.
|
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 | Class and Description |
---|---|
class |
BaseRepositoryBuilder<B extends BaseRepositoryBuilder,R extends Repository>
Base builder to customize repository construction.
|
Modifier and Type | Method and Description |
---|---|
Repository |
TreeEntry.getRepository()
Deprecated.
|
Repository |
Tree.getRepository()
Deprecated.
|
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)
Remove a repository from the cache.
|
static BranchTrackingStatus |
BranchTrackingStatus.of(Repository repository,
java.lang.String branchName)
Compute the tracking status for the
branchName in
repository . |
static void |
RepositoryCache.register(Repository db)
Register one repository into 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,
java.lang.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,
java.lang.String revstr,
WorkingTreeIterator workingTreeIterator)
Construct an IndexDiff
|
PersonIdent(Repository repo)
Creates new PersonIdent from config info in repository, with current time.
|
Tree(Repository repo)
Deprecated.
Constructor for a new Tree
|
Tree(Repository repo,
ObjectId myId,
byte[] raw)
Deprecated.
Construct a Tree object with known content and hash value
|
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 |
---|---|
abstract Merger |
MergeStrategy.newMerger(Repository db)
Create a new merge instance.
|
ThreeWayMerger |
StrategyResolve.newMerger(Repository db) |
abstract ThreeWayMerger |
ThreeWayMergeStrategy.newMerger(Repository db) |
ThreeWayMerger |
StrategySimpleTwoWayInCore.newMerger(Repository db) |
Merger |
StrategyOneSided.newMerger(Repository db) |
abstract Merger |
MergeStrategy.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
ThreeWayMerger |
StrategyResolve.newMerger(Repository db,
boolean inCore) |
abstract ThreeWayMerger |
ThreeWayMergeStrategy.newMerger(Repository db,
boolean inCore) |
ThreeWayMerger |
StrategySimpleTwoWayInCore.newMerger(Repository db,
boolean inCore) |
Merger |
StrategyOneSided.newMerger(Repository db,
boolean inCore) |
Constructor and Description |
---|
Merger(Repository local)
Create a new merge instance for a repository.
|
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 . |
Constructor and Description |
---|
PlotWalk(Repository repo)
Create a new revision walker for a given repository.
|
Constructor and Description |
---|
DepthWalk.ObjectWalk(Repository repo,
int depth) |
DepthWalk.RevWalk(Repository repo,
int depth) |
ObjectWalk(Repository repo)
Create a new revision and object walker for a given repository.
|
RevWalk(Repository repo)
Create a new revision walker for a given repository.
|
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 |
---|
ReflogReader(Repository db,
java.lang.String refname) |
ReflogWriter(Repository repository)
Create write for repository
|
ReflogWriter(Repository repository,
boolean forceWrite)
Create write for repository
|
Constructor and Description |
---|
PackConfig(Repository db)
Create a configuration honoring the repository's settings.
|
PackWriter(Repository repo)
Create writer for specified repository.
|
PackWriter(Repository repo,
ObjectReader reader)
Create writer for specified repository.
|
Modifier and Type | Method and Description |
---|---|
Repository |
SubmoduleWalk.getRepository()
Get repository for current submodule entry
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(java.io.File parent,
java.lang.String path)
Get submodule repository at path
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(Repository parent,
java.lang.String path)
Get submodule repository
|
Modifier and Type | Method and Description |
---|---|
static SubmoduleWalk |
SubmoduleWalk.forIndex(Repository repository)
Create a generator to walk over the submodule entries currently in the
index
|
static SubmoduleWalk |
SubmoduleWalk.forPath(Repository repository,
AbstractTreeIterator iterator,
java.lang.String path)
Create a generator and advance it to the submodule entry at the given
path
|
static SubmoduleWalk |
SubmoduleWalk.forPath(Repository repository,
AnyObjectId treeId,
java.lang.String path)
Create a generator and advance it to the submodule entry at the given
path
|
static java.io.File |
SubmoduleWalk.getSubmoduleDirectory(Repository parent,
java.lang.String path)
Get submodule directory
|
static java.lang.String |
SubmoduleWalk.getSubmoduleRemoteUrl(Repository parent,
java.lang.String url)
Resolve submodule repository URL.
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(Repository parent,
java.lang.String path)
Get submodule repository
|
Constructor and Description |
---|
SubmoduleWalk(Repository repository)
Create submodule generator
|
Modifier and Type | Field and Description |
---|---|
protected Repository |
BaseReceivePack.db
Database we write the stored objects into.
|
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,
java.lang.String remoteName)
Determine if this protocol can handle a particular URI.
|
static java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
java.util.Collection<RefSpec> specs,
java.util.Collection<RefSpec> fetchSpecs)
Convert push remote refs update specification from
RefSpec form
to RemoteRefUpdate . |
protected java.util.Set<ObjectId> |
AbstractAdvertiseRefsHook.getAdvertisedHaves(Repository repository,
RevWalk revWalk)
Get the additional haves to advertise.
|
protected abstract java.util.Map<java.lang.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,
java.lang.String remote)
Open a new transport instance to connect two repositories.
|
static Transport |
Transport.open(Repository local,
java.lang.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,
java.lang.String remoteName)
Open a new transport instance to connect two repositories.
|
abstract Transport |
TransportProtocol.open(URIish uri,
Repository local,
java.lang.String remoteName)
Open a Transport instance to the other repository.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
RemoteConfig cfg)
Open new transport instances to connect two repositories.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
RemoteConfig cfg,
Transport.Operation op)
Open new transport instances to connect two repositories.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
java.lang.String remote)
Open new transport instances to connect two repositories.
|
static java.util.List<Transport> |
Transport.openAll(Repository local,
java.lang.String remote,
Transport.Operation op)
Open new transport instances to connect two repositories.
|
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.
|
ReceivePack(Repository into)
Create a new pack receive for an open repository.
|
RemoteRefUpdate(Repository localDb,
Ref srcRef,
java.lang.String remoteName,
boolean forceUpdate,
java.lang.String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
RemoteRefUpdate(Repository localDb,
java.lang.String srcRef,
ObjectId srcId,
java.lang.String remoteName,
boolean forceUpdate,
java.lang.String localName,
ObjectId expectedOldObjectId)
Construct remote ref update request by providing an update specification.
|
RemoteRefUpdate(Repository localDb,
java.lang.String srcRef,
java.lang.String remoteName,
boolean forceUpdate,
java.lang.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,
java.io.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 |
FileResolver.open(C req,
java.lang.String name) |
Repository |
RepositoryResolver.open(C req,
java.lang.String name)
Locate and open a reference to a
Repository . |
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(java.lang.String name,
Repository db)
Add a single repository to the set that is exported by this daemon.
|
protected boolean |
FileResolver.isExportOk(C req,
java.lang.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 db,
java.lang.String path,
AnyObjectId... trees)
Open a tree walk and filter to exactly one path.
|
static TreeWalk |
TreeWalk.forPath(Repository db,
java.lang.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.
|
NameConflictTreeWalk(Repository repo)
Create a new tree walker for a given repository.
|
TreeWalk(Repository repo)
Create a new tree walker for a given repository.
|
Copyright © 2012. All Rights Reserved.