Modifier and Type | Field and Description |
---|---|
private Repository |
Git.repo
The git repository this class is interacting with
|
protected Repository |
GitCommand.repo
The repository this command is working with
|
Modifier and Type | Method and Description |
---|---|
Repository |
SubmoduleAddCommand.call() |
private Repository |
SubmoduleUpdateCommand.getOrCloneSubmodule(SubmoduleWalk generator,
java.lang.String url) |
Repository |
Git.getRepository()
Get repository
|
Repository |
GitCommand.getRepository()
Get repository this command is working on
|
private Repository |
CloneCommand.init() |
Modifier and Type | Method and Description |
---|---|
private void |
CloneCommand.addMergeConfig(Repository clonedRepo,
Ref head) |
private void |
CloneCommand.checkout(Repository clonedRepo,
FetchResult result) |
private void |
CloneCommand.cloneSubmodules(Repository clonedRepo) |
(package private) static void |
AddNoteCommand.commitNoteMap(Repository r,
java.lang.String ref,
RevWalk walk,
NoteMap map,
RevCommit notesCommit,
ObjectInserter inserter,
java.lang.String msg) |
private FetchResult |
CloneCommand.fetch(Repository clonedRepo,
URIish u) |
protected java.lang.String |
SubmoduleSyncCommand.getHeadBranch(Repository subRepo)
Get branch that HEAD currently points to
|
private RevCommit |
CloneCommand.parseCommit(Repository clonedRepo,
Ref ref) |
static Git |
Git.wrap(Repository repo)
Wrap repository
|
Constructor and Description |
---|
AddCommand(Repository repo)
Constructor for AddCommand
|
AddNoteCommand(Repository repo)
Constructor for AddNoteCommand
|
ApplyCommand(Repository repo)
Constructs the command if the patch is to be applied to the index.
|
ArchiveCommand(Repository repo)
Constructor for ArchiveCommand
|
BlameCommand(Repository repo)
Constructor for BlameCommand
|
CheckoutCommand(Repository repo)
Constructor for CheckoutCommand
|
CherryPickCommand(Repository repo)
Constructor for CherryPickCommand
|
CleanCommand(Repository repo)
Constructor for CleanCommand
|
CommitCommand(Repository repo)
Constructor for CommitCommand
|
CreateBranchCommand(Repository repo)
Constructor for CreateBranchCommand
|
DeleteBranchCommand(Repository repo)
Constructor for DeleteBranchCommand
|
DeleteTagCommand(Repository repo)
Constructor for DeleteTagCommand
|
DescribeCommand(Repository repo)
Constructor for DescribeCommand.
|
DiffCommand(Repository repo)
Constructor for DiffCommand
|
FetchCommand(Repository repo)
Constructor for FetchCommand.
|
GarbageCollectCommand(Repository repo)
Constructor for GarbageCollectCommand.
|
Git(Repository repo)
Construct a new
Git object which can
interact with the specified git repository. |
Git(Repository repo,
boolean closeRepo) |
GitCommand(Repository repo)
Creates a new command which interacts with a single repository
|
ListBranchCommand(Repository repo)
Constructor for ListBranchCommand.
|
ListNotesCommand(Repository repo)
Constructor for ListNotesCommand.
|
ListTagCommand(Repository repo)
Constructor for ListTagCommand.
|
LogCommand(Repository repo)
Constructor for LogCommand.
|
LsRemoteCommand(Repository repo)
Constructor for LsRemoteCommand
|
MergeCommand(Repository repo)
Constructor for MergeCommand.
|
NameRevCommand(Repository repo)
Create a new name-rev command.
|
PullCommand(Repository repo)
Constructor for PullCommand.
|
PushCommand(Repository repo)
Constructor for PushCommand.
|
RebaseCommand(Repository repo)
Constructor for RebaseCommand.
|
ReflogCommand(Repository repo)
Constructor for ReflogCommand.
|
RemoteAddCommand(Repository repo)
Constructor for RemoteAddCommand.
|
RemoteListCommand(Repository repo)
Constructor for RemoteListCommand.
|
RemoteRemoveCommand(Repository repo)
Constructor for RemoteRemoveCommand.
|
RemoteSetUrlCommand(Repository repo)
Constructor for RemoteSetUrlCommand.
|
RemoveNoteCommand(Repository repo)
Constructor for RemoveNoteCommand.
|
RenameBranchCommand(Repository repo)
Constructor for RenameBranchCommand.
|
ResetCommand(Repository repo)
Constructor for ResetCommand.
|
RevertCommand(Repository repo)
Constructor for RevertCommand.
|
RmCommand(Repository repo)
Constructor for RmCommand.
|
ShowNoteCommand(Repository repo)
Constructor for ShowNoteCommand.
|
StashApplyCommand(Repository repo)
Create command to apply the changes of a stashed commit
|
StashCreateCommand(Repository repo)
Create a command to stash changes in the working directory and index
|
StashDropCommand(Repository repo)
Constructor for StashDropCommand.
|
StashListCommand(Repository repo)
Create a new stash list command
|
StatusCommand(Repository repo)
Constructor for StatusCommand.
|
SubmoduleAddCommand(Repository repo)
Constructor for SubmoduleAddCommand.
|
SubmoduleDeinitCommand(Repository repo)
Constructor of SubmoduleDeinitCommand
|
SubmoduleInitCommand(Repository repo)
Constructor for SubmoduleInitCommand.
|
SubmoduleStatusCommand(Repository repo)
Constructor for SubmoduleStatusCommand.
|
SubmoduleSyncCommand(Repository repo)
Constructor for SubmoduleSyncCommand.
|
SubmoduleUpdateCommand(Repository repo)
Constructor for SubmoduleUpdateCommand.
|
TagCommand(Repository repo)
Constructor for TagCommand.
|
TransportCommand(Repository repo)
Constructor for TransportCommand.
|
Modifier and Type | Method and Description |
---|---|
FilterCommand |
FilterCommandFactory.create(Repository db,
java.io.InputStream in,
java.io.OutputStream out)
Create a new
FilterCommand . |
static FilterCommand |
FilterCommandRegistry.createFilterCommand(java.lang.String filterCommandName,
Repository db,
java.io.InputStream in,
java.io.OutputStream out)
Create a new
FilterCommand for the
given name. |
Modifier and Type | Field and Description |
---|---|
private Repository |
BlameGenerator.repository |
private Repository |
Candidate.sourceRepository
repository used for LFS blob handling
|
Modifier and Type | Method and Description |
---|---|
Repository |
BlameGenerator.getRepository()
Get repository
|
Modifier and Type | Method and Description |
---|---|
(package private) Candidate |
Candidate.create(Repository repo,
RevCommit commit,
PathFilter path) |
(package private) Candidate |
Candidate.ReverseCandidate.create(Repository repo,
RevCommit commit,
PathFilter path) |
private java.util.List<RevCommit> |
BlameGenerator.getHeads(Repository repo,
ObjectId head) |
Constructor and Description |
---|
BlameGenerator(Repository repository,
java.lang.String path)
Create a blame generator for the repository and path (relative to
repository)
|
BlobCandidate(Repository repo,
java.lang.String name,
PathFilter path) |
Candidate(Repository repo,
RevCommit commit,
PathFilter path) |
HeadCandidate(Repository repo,
PathFilter path,
java.util.List<RevCommit> parents) |
ReverseCandidate(Repository repo,
ReverseWalk.ReverseCommit commit,
PathFilter path) |
ReverseWalk(Repository repo) |
Modifier and Type | Field and Description |
---|---|
private Repository |
DiffFormatter.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 | Field and Description |
---|---|
private Repository |
DirCacheCheckout.repo |
private Repository |
DirCache.repository
Repository containing this index
|
Modifier and Type | Method and Description |
---|---|
static 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,
java.lang.String path,
DirCacheCheckout.CheckoutMetadata checkoutMetadata,
ObjectLoader ol,
WorkingTreeOptions opt,
java.io.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,
java.io.OutputStream channel) |
private static void |
DirCacheCheckout.runExternalFilterCommand(Repository repo,
java.lang.String path,
DirCacheCheckout.CheckoutMetadata checkoutMetadata,
ObjectLoader ol,
java.io.OutputStream channel) |
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 | Field and Description |
---|---|
private Repository |
RepositoryEvent.repository |
Modifier and Type | Method and Description |
---|---|
Repository |
RepositoryEvent.getRepository()
Get the repository that was changed
|
Modifier and Type | Method and Description |
---|---|
void |
RepositoryEvent.setRepository(Repository r)
Set the repository this event occurred on.
|
Modifier and Type | Field and Description |
---|---|
(package private) Repository |
RepoProject.ReferenceFile.repo |
private Repository |
ManifestParser.rootRepo |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
RepoCommand.findRef(java.lang.String ref,
Repository repo) |
Constructor and Description |
---|
CopyFile(Repository repo,
java.lang.String path,
java.lang.String src,
java.lang.String dest) |
LinkFile(Repository repo,
java.lang.String path,
java.lang.String src,
java.lang.String dest) |
ManifestParser(ManifestParser.IncludedFileReader includedReader,
java.lang.String filename,
java.lang.String defaultBranch,
java.lang.String baseUrl,
java.lang.String groups,
Repository rootRepo)
Constructor for ManifestParser
|
ReferenceFile(Repository repo,
java.lang.String path,
java.lang.String src,
java.lang.String dest) |
RepoCommand(Repository repo)
Constructor for RepoCommand
|
Modifier and Type | Field and Description |
---|---|
private Repository |
GitHook.repo |
Modifier and Type | Method and Description |
---|---|
protected Repository |
GitHook.getRepository()
Get the repository
|
Modifier and Type | Method and Description |
---|---|
static CommitMsgHook |
Hooks.commitMsg(Repository repo,
java.io.PrintStream outputStream)
Create commit-msg hook for the given repository with the default error
stream
|
static CommitMsgHook |
Hooks.commitMsg(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Create commit-msg hook for the given repository
|
static PostCommitHook |
Hooks.postCommit(Repository repo,
java.io.PrintStream outputStream)
Create post-commit hook for the given repository with the default error
stream
|
static PostCommitHook |
Hooks.postCommit(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Create post-commit hook for the given repository
|
static PreCommitHook |
Hooks.preCommit(Repository repo,
java.io.PrintStream outputStream)
Create pre-commit hook for the given repository with the default error
stream
|
static PreCommitHook |
Hooks.preCommit(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Create pre-commit hook for the given repository
|
static PrePushHook |
Hooks.prePush(Repository repo,
java.io.PrintStream outputStream)
Create pre-push hook for the given repository with the default error
stream
|
static PrePushHook |
Hooks.prePush(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Create pre-push hook for the given repository
|
Constructor and Description |
---|
CommitMsgHook(Repository repo,
java.io.PrintStream outputStream)
Constructor for CommitMsgHook
|
CommitMsgHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Constructor for CommitMsgHook
|
GitHook(Repository repo,
java.io.PrintStream outputStream)
Constructor for GitHook.
|
GitHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Constructor for GitHook
|
PostCommitHook(Repository repo,
java.io.PrintStream outputStream)
Constructor for PostCommitHook
|
PostCommitHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Constructor for PostCommitHook
|
PreCommitHook(Repository repo,
java.io.PrintStream outputStream)
Constructor for PreCommitHook
|
PreCommitHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Constructor for PreCommitHook
|
PrePushHook(Repository repo,
java.io.PrintStream outputStream)
Constructor for PrePushHook
|
PrePushHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Constructor for PrePushHook
|
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 |
---|---|
protected 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 java.lang.String |
ServletUtils.identify(Repository git) |
private static boolean |
IsLocalFilter.isLocal(Repository db) |
private void |
ReceivePackServlet.log(Repository git,
java.lang.Throwable e) |
private void |
UploadPackServlet.log(Repository git,
java.lang.Throwable e) |
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.
|
ReceivePack |
DefaultReceivePackFactory.create(javax.servlet.http.HttpServletRequest req,
Repository db)
Create and configure a new ReceivePack instance for a repository.
|
UploadPack |
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,
java.lang.String user) |
protected static boolean |
AsIsFileService.isEnabled(Repository db)
Determine if
http.getanyfile is enabled in the configuration. |
Modifier and Type | Field and Description |
---|---|
private Repository |
LagCheck.repo |
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 |
---|---|
(package private) void |
KetchReplica.afterPush(Repository repo,
ReplicaPushRequest req)
Callback from
ReplicaPushRequest upon success or failure. |
protected abstract void |
KetchReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req)
Fetch objects from the remote using the calling thread.
|
protected void |
LocalReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req)
Fetch objects from the remote using the calling thread.
|
protected void |
RemoteGitReplica.blockingFetch(Repository repo,
ReplicaFetchRequest req)
Fetch objects from the remote using the calling thread.
|
private ObjectId |
ElectionRound.bumpTerm(Repository git,
ProposedTimestamp ts,
ObjectInserter inserter) |
private static java.lang.String |
KetchLeaderCache.computeKey(Repository repo) |
KetchLeader |
KetchSystem.createLeader(Repository repo)
Construct the KetchLeader instance of a repository.
|
protected java.util.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.
|
(package private) void |
LocalReplica.initialize(Repository repo)
Initializes local replica by reading accepted and committed references.
|
private ObjectId |
ProposalRound.insertMultiProposal(Repository git,
ProposedTimestamp ts,
ObjectInserter inserter) |
private ObjectId |
ProposalRound.insertProposals(Repository git,
ProposedTimestamp ts) |
private ObjectId |
ProposalRound.insertSingleProposal(Repository git,
ProposedTimestamp ts,
ObjectInserter inserter) |
java.util.List<ReceiveCommand> |
StageBuilder.makeStageList(Repository git,
ObjectId oldTree,
ObjectId newTree)
Compare two RefTrees and return commands to stage new objects.
|
private java.util.List<ReceiveCommand> |
ProposalRound.makeStageList(Repository git,
ObjectInserter inserter) |
java.util.List<ReceiveCommand> |
StageBuilder.makeStageList(java.util.Set<ObjectId> newObjs,
Repository git,
ObjectInserter inserter)
Construct a set of commands to stage objects on a replica.
|
private void |
RemoteGitReplica.prepareCommit(Repository git,
java.util.List<RemoteGitReplica.RemoteCommand> cmds,
java.util.Map<java.lang.String,RemoteRefUpdate> updates,
java.util.Map<java.lang.String,Ref> adv,
ObjectId committed) |
protected java.util.Collection<ReceiveCommand> |
KetchReplica.prepareCommit(Repository git,
java.util.Map<java.lang.String,Ref> current,
ObjectId committed)
Build a list of commands to commit
KetchReplica.CommitMethod.ALL_REFS . |
private void |
RemoteGitReplica.push(Repository repo,
ReplicaPushRequest req) |
private java.util.Map<java.lang.String,Ref> |
RemoteGitReplica.push(Repository git,
Transport transport,
java.util.List<RemoteGitReplica.RemoteCommand> cmds) |
private void |
StageBuilder.reduceObjects(java.util.List<ReceiveCommand> cmds,
java.util.List<RevCommit> commits,
Repository git,
java.util.Set<ObjectId> newObjs) |
void |
ReplicaPushRequest.setException(Repository repo,
java.lang.Throwable err)
Mark the request as crashing with a communication error.
|
private KetchLeader |
KetchLeaderCache.startLeader(java.lang.String key,
Repository repo) |
private void |
LocalReplica.update(Repository git,
ReplicaPushRequest req,
ProposedTimestamp ts) |
Constructor and Description |
---|
LagCheck(KetchReplica replica,
Repository repo) |
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 | Field and Description |
---|---|
(package private) Repository |
GlobalAttributesNode.repository |
(package private) Repository |
InfoAttributesNode.repository |
Modifier and Type | Method and Description |
---|---|
protected Repository |
FileReftableDatabase.FileReftableRefUpdate.getRepository() |
(package private) Repository |
RefDirectory.getRepository() |
protected Repository |
RefDirectoryUpdate.getRepository()
Get the repository storing the database's objects.
|
Modifier and Type | Method and Description |
---|---|
private static void |
FileReftableDatabase.writeConvertTable(Repository repo,
ReftableWriter w,
boolean writeLogs) |
Constructor and Description |
---|
AttributesNodeProviderImpl(Repository repo)
Constructor.
|
FileReftableBatchRefUpdate(FileReftableDatabase db,
Repository repository) |
GlobalAttributesNode(Repository repository)
Constructor for GlobalAttributesNode.
|
InfoAttributesNode(Repository repository)
Constructor for InfoAttributesNode.
|
ReflogReaderImpl(Repository db,
java.lang.String refname) |
Constructor and Description |
---|
PackWriter(Repository repo)
Create writer for specified repository.
|
PackWriter(Repository repo,
ObjectReader reader)
Create writer for specified repository.
|
Modifier and Type | Field and Description |
---|---|
private Repository |
ReftableBatchRefUpdate.repository |
Constructor and Description |
---|
ReftableBatchRefUpdate(RefDatabase refdb,
ReftableDatabase reftableDb,
java.util.concurrent.locks.Lock lock,
Repository repository)
Initialize.
|
ReftableConfig(Repository db)
Create a configuration honoring the repository's settings.
|
Modifier and Type | Field and Description |
---|---|
private Repository |
RefTreeDatabase.repo |
Modifier and Type | Method and Description |
---|---|
protected Repository |
AlwaysFailUpdate.getRepository()
Get the repository storing the database's objects.
|
(package private) Repository |
RefTreeDatabase.getRepository() |
protected Repository |
RefTreeUpdate.getRepository()
Get the repository storing the database's objects.
|
Modifier and Type | Method and Description |
---|---|
(package private) static Scanner.Result |
Scanner.scanRefTree(Repository repo,
Ref src,
java.lang.String prefix,
boolean recursive)
|
Constructor and Description |
---|
RefTreeDatabase(Repository repo,
RefDatabase bootstrap)
Create a RefTreeDb for a repository.
|
RefTreeDatabase(Repository repo,
RefDatabase bootstrap,
java.lang.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 | Field and Description |
---|---|
private R |
TestRepository.db |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Repository> |
LocalDiskRepositoryTestCase.toClose |
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,
java.lang.String name)
Check if file exists
|
static void |
JGitTestUtil.deleteTrashFile(Repository db,
java.lang.String name)
Delete a trash file.
|
static java.lang.String |
LocalDiskRepositoryTestCase.indexState(Repository repo,
int includedOptions)
Represent the state of the index in one String.
|
static java.lang.String |
JGitTestUtil.read(Repository db,
java.lang.String name)
Read a file's content
|
protected int |
LocalDiskRepositoryTestCase.runHook(Repository db,
java.io.File hook,
java.lang.String... args)
Run a hook script in the repository, returning the exit status.
|
static java.nio.file.Path |
JGitTestUtil.writeLink(Repository db,
java.lang.String link,
java.lang.String target)
Write a symbolic link
|
static java.io.File |
JGitTestUtil.writeTrashFile(Repository db,
java.lang.String name,
java.lang.String data)
Write a trash file.
|
static java.io.File |
JGitTestUtil.writeTrashFile(Repository db,
java.lang.String subdir,
java.lang.String name,
java.lang.String data)
Write a trash file.
|
Modifier and Type | Field and Description |
---|---|
private Repository |
SimpleHttpServer.db |
Modifier and Type | Method and Description |
---|---|
protected TestRepository<Repository> |
HttpTestCase.createTestRepository()
Create TestRepository
|
Modifier and Type | Method and Description |
---|---|
protected static void |
HttpTestCase.fsck(Repository db,
RevObject... tips)
Run fsck
|
private static java.lang.String |
SimpleHttpServer.nameOf(Repository db) |
Constructor and Description |
---|
SimpleHttpServer(Repository repository)
Constructor for
SimpleHttpServer . |
SimpleHttpServer(Repository repository,
boolean withSsl)
Constructor for
SimpleHttpServer . |
Modifier and Type | Field and Description |
---|---|
protected Repository |
SshTestGitServer.repository |
Constructor and Description |
---|
SshTestGitServer(java.lang.String testUser,
java.nio.file.Path testKey,
Repository repository,
byte[] hostKey)
Creates a ssh git test server.
|
Modifier and Type | Field and Description |
---|---|
private Repository |
InstallBuiltinLfsCommand.repository |
Modifier and Type | Method and Description |
---|---|
LfsFactory.LfsInputStream |
BuiltinLFS.applyCleanFilter(Repository db,
java.io.InputStream input,
long length,
Attribute attribute) |
ObjectLoader |
BuiltinLFS.applySmudgeFilter(Repository db,
ObjectLoader loader,
Attribute attribute) |
static TemporaryBuffer |
LfsBlobFilter.cleanLfsBlob(Repository db,
java.io.InputStream originalContent)
Run the LFS clean filter on the given stream and return a stream to the
LFS pointer file buffer.
|
static java.util.Collection<java.nio.file.Path> |
SmudgeFilter.downloadLfsResource(Lfs lfs,
Repository db,
LfsPointer... res)
Download content which is hosted on a LFS server
|
PrePushHook |
BuiltinLFS.getPrePushHook(Repository repo,
java.io.PrintStream outputStream) |
PrePushHook |
BuiltinLFS.getPrePushHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream) |
boolean |
BuiltinLFS.isEnabled(Repository db) |
private boolean |
BuiltinLFS.isEnabled(Repository db,
Attribute attribute) |
LfsFactory.LfsInstallCommand |
InstallBuiltinLfsCommand.setRepository(Repository repo)
Set the repository to install LFS for
|
static ObjectLoader |
LfsBlobFilter.smudgeLfsBlob(Repository db,
ObjectLoader loader)
In case the given
ObjectLoader points to a LFS pointer file
replace the loader with one pointing to the LFS media file contents. |
Constructor and Description |
---|
CleanFilter(Repository db,
java.io.InputStream in,
java.io.OutputStream out)
Constructor for CleanFilter.
|
Lfs(Repository db)
Constructor for Lfs.
|
LfsPrePushHook(Repository repo,
java.io.PrintStream outputStream) |
LfsPrePushHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream) |
SmudgeFilter(Repository db,
java.io.InputStream in,
java.io.OutputStream out)
Constructor for SmudgeFilter.
|
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
LfsConnectionFactory.discoverLfsUrl(Repository db,
java.lang.String purpose,
java.util.Map<java.lang.String,java.lang.String> additionalHeaders,
java.lang.String remoteUrl) |
static HttpConnection |
LfsConnectionFactory.getLfsConnection(Repository db,
java.lang.String method,
java.lang.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,
java.lang.String method)
Create a connection for the specified
Protocol.Action . |
private static java.lang.String |
LfsConnectionFactory.getLfsUrl(Repository db,
java.lang.String purpose,
java.util.Map<java.lang.String,java.lang.String> additionalHeaders) |
private static Protocol.ExpiringAction |
LfsConnectionFactory.getSshAuthentication(Repository db,
java.lang.String purpose,
java.lang.String remoteUrl,
URIish u) |
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 |
---|---|
private Repository |
RebaseTodoFile.repo |
private Repository |
IndexDiff.repository |
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentHashMap<RepositoryCache.Key,Repository> |
RepositoryCache.cacheMap |
Modifier and Type | Method and Description |
---|---|
protected abstract Repository |
RefUpdate.getRepository()
Get the repository storing the database's objects.
|
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.
|
private Repository |
RepositoryCache.openRepository(RepositoryCache.Key location,
boolean mustExist) |
private Repository |
RepositoryCache.unregisterRepository(RepositoryCache.Key location) |
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) |
(package private) static boolean |
RepositoryCache.isCached(Repository repo) |
private boolean |
RepositoryCache.isExpired(Repository db) |
static BranchTrackingStatus |
BranchTrackingStatus.of(Repository repository,
java.lang.String branchName)
Compute the tracking status for the
branchName in
repository . |
private static byte[] |
BlobBasedConfig.read(Repository db,
AnyObjectId blobId) |
private static byte[] |
BlobBasedConfig.read(Repository db,
AnyObjectId treeish,
java.lang.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.
|
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.
|
RebaseTodoFile(Repository repo)
Constructor for RebaseTodoFile.
|
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()
Get the repository this merger operates on.
|
protected Repository |
Merger.nonNullRepo()
Get non-null repository instance
|
Modifier and Type | Method and Description |
---|---|
static MergeConfig |
MergeConfig.getConfigForCurrentBranch(Repository repo)
Get merge configuration for the current branch of the repository
|
abstract Merger |
MergeStrategy.newMerger(Repository db)
Create a new merge instance.
|
Merger |
StrategyOneSided.newMerger(Repository db)
Create a new merge instance.
|
ThreeWayMerger |
StrategyRecursive.newMerger(Repository db)
Create a new merge instance.
|
ThreeWayMerger |
StrategyResolve.newMerger(Repository db)
Create a new merge instance.
|
ThreeWayMerger |
StrategySimpleTwoWayInCore.newMerger(Repository db)
Create a new merge instance.
|
abstract ThreeWayMerger |
ThreeWayMergeStrategy.newMerger(Repository db)
Create a new merge instance.
|
abstract Merger |
MergeStrategy.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
Merger |
StrategyOneSided.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
ThreeWayMerger |
StrategyRecursive.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
ThreeWayMerger |
StrategyResolve.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
ThreeWayMerger |
StrategySimpleTwoWayInCore.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
abstract ThreeWayMerger |
ThreeWayMergeStrategy.newMerger(Repository db,
boolean inCore)
Create a new merge instance.
|
Constructor and Description |
---|
InCoreMerger(Repository local) |
Merger(Repository local)
Create a new merge instance for a repository.
|
OneSide(Repository local,
int index) |
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)
Constructor for ResolveMerger.
|
ResolveMerger(Repository local,
boolean inCore)
Constructor for ResolveMerger.
|
ThreeWayMerger(Repository local)
Create a new merge instance for a repository.
|
ThreeWayMerger(Repository local,
boolean inCore)
Create a new merge instance for a repository.
|
Modifier and Type | Field and Description |
---|---|
private Repository |
NoteMapMerger.db |
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()
Get the repository
|
protected Repository |
Main.openGitDir(java.lang.String aGitdir)
Evaluate the
--git-dir option and open the repository. |
Modifier and Type | Method and Description |
---|---|
private java.nio.charset.Charset |
TextBuiltin.getLogOutputEncodingCharset(Repository repository)
Get the log output encoding specified in the repository's
i18n.logOutputEncoding configuration. |
protected void |
Diff.init(Repository repository,
java.lang.String gitDir)
Initialize the command to work with a repository.
|
protected void |
Log.init(Repository repository,
java.lang.String gitDir)
Initialize the command to work with a repository.
|
protected void |
Show.init(Repository repository,
java.lang.String gitDir)
Initialize the command to work with a repository.
|
protected void |
TextBuiltin.init(Repository repository,
java.lang.String gitDir)
Initialize the command to work with a repository.
|
void |
TextBuiltin.initRaw(Repository repository,
java.lang.String gitDir,
java.io.InputStream input,
java.io.OutputStream output,
java.io.OutputStream error)
Initializes the command to work with a repository, including setting the
output and error streams.
|
Modifier and Type | Method and Description |
---|---|
private void |
DiffAlgorithms.run(Repository repo) |
private void |
TextHashFunctions.run(Repository repo) |
Modifier and Type | Field and Description |
---|---|
private Repository |
CmdLineParser.db |
Modifier and Type | Method and Description |
---|---|
Repository |
CmdLineParser.getRepository()
Get the repository this parser translates values through.
|
Constructor and Description |
---|
CmdLineParser(java.lang.Object bean,
Repository repo)
Creates a new command line owner that parses arguments/options and set
them into the given object.
|
Modifier and Type | Field and Description |
---|---|
private Repository |
PlotWalk.repository |
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(java.io.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 | Field and Description |
---|---|
private Repository |
SubmoduleWalk.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(java.io.File parent,
java.lang.String path,
FS fs)
Get submodule repository at path, using the specified file system
abstraction
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(java.io.File parent,
java.lang.String path,
FS fs,
BaseRepositoryBuilder<?,? extends Repository> builder)
Get submodule repository at path, using the specified file system
abstraction and the specified builder
|
static Repository |
SubmoduleWalk.getSubmoduleRepository(Repository parent,
java.lang.String path)
Get submodule repository
|
Modifier and Type | Method and Description |
---|---|
private BaseRepositoryBuilder<?,? extends Repository> |
SubmoduleWalk.getBuilder() |
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,
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
|
Modifier and Type | Method and Description |
---|---|
static Repository |
SubmoduleWalk.getSubmoduleRepository(java.io.File parent,
java.lang.String path,
FS fs,
BaseRepositoryBuilder<?,? extends Repository> builder)
Get submodule repository at path, using the specified file system
abstraction and the specified builder
|
Constructor and Description |
---|
SubmoduleWalk(Repository repository)
Create submodule generator
|
Modifier and Type | Field and Description |
---|---|
private Repository |
BundleWriter.db |
private Repository |
PushCertificateParser.db
Database we write the push certificate into.
|
private Repository |
PushCertificateStore.db |
private Repository |
ReceivePack.db
Database we write the stored objects into.
|
private Repository |
UploadPack.db
Database we read the objects from.
|
protected Repository |
BasePackConnection.local
The repository this transport fetches into, or pushes out of.
|
protected Repository |
Transport.local
The repository this transport fetches into, or pushes out of.
|
(package private) Repository |
WalkFetchConnection.local
The repository this transport fetches into, or pushes out of.
|
private Repository |
WalkPushConnection.local
The repository this transport pushes out of.
|
private Repository |
RemoteRefUpdate.localDb |
(package private) Repository |
TestProtocol.Handle.remote |
private Repository |
ConnectivityChecker.ConnectivityCheckInfo.repository |
private Repository |
RefAdvertiser.repository |
Modifier and Type | Method and Description |
---|---|
Repository |
ConnectivityChecker.ConnectivityCheckInfo.getRepository() |
Repository |
ReceivePack.getRepository()
Get the repository this receive completes into.
|
Repository |
UploadPack.getRepository()
Get the repository this upload is reading from.
|
private Repository |
TransportLocal.openRepo() |
(package private) Repository |
Daemon.openRepository(DaemonClient client,
java.lang.String name) |
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.
|
java.lang.String |
HMACSHA1NonceGenerator.createNonce(Repository repo,
long timestamp)
Create nonce to be signed by the pusher
|
java.lang.String |
NonceGenerator.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,
java.util.Collection<java.lang.String> extraParameters) |
private static java.util.Collection<RefSpec> |
Transport.expandPushWildcardsFor(Repository db,
java.util.Collection<RefSpec> specs) |
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 . |
static java.util.Collection<RemoteRefUpdate> |
Transport.findRemoteRefUpdatesFor(Repository db,
java.util.Collection<RefSpec> specs,
java.util.Map<java.lang.String,RefLeaseSpec> leases,
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.
|
private boolean |
DaemonService.isEnabledFor(Repository db) |
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.
|
Transport |
TestProtocol.open(URIish uri,
Repository local,
java.lang.String remoteName)
Open a Transport instance to the other repository.
|
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.
|
URIish |
TestProtocol.register(C req,
Repository remote)
Register a repository connection over the internal test protocol.
|
void |
ConnectivityChecker.ConnectivityCheckInfo.setRepository(Repository repository) |
PushCertificate.NonceStatus |
HMACSHA1NonceGenerator.verify(java.lang.String received,
java.lang.String sent,
Repository db,
boolean allowSlop,
int slop)
Verify trustworthiness of the received nonce.
|
PushCertificate.NonceStatus |
NonceGenerator.verify(java.lang.String received,
java.lang.String sent,
Repository db,
boolean allowSlop,
int slop)
Verify trustworthiness of the received nonce.
|
Constructor and Description |
---|
BundleWriter(Repository repo)
Create a writer for a bundle.
|
Handle(C req,
Repository remote) |
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.
|
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,
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.
|
TransferConfig(Repository db)
Create a configuration honoring the repository's settings.
|
Transport(Repository local,
URIish uri)
Create a new transport instance.
|
TransportAmazonS3(Repository local,
URIish uri) |
TransportBundleFile(Repository local,
URIish uri,
java.io.File bundlePath) |
TransportBundleStream(Repository db,
URIish uri,
java.io.InputStream in)
Create a new transport to fetch objects from a streamed bundle.
|
TransportGitAnon(Repository local,
URIish uri) |
TransportGitSsh(Repository local,
URIish uri) |
TransportHttp(Repository local,
URIish uri) |
TransportInternal(Repository local,
URIish uri,
TestProtocol.Handle handle) |
TransportLocal(Repository local,
URIish uri,
java.io.File gitDir) |
TransportSftp(Repository local,
URIish uri) |
UploadPack(Repository copyFrom)
Create a new pack upload for an open repository.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Repository> |
FileResolver.exports |
Modifier and Type | Method and Description |
---|---|
Repository |
FileResolver.open(C req,
java.lang.String name)
Locate and open a reference to a
Repository . |
Repository |
RepositoryResolver.open(C req,
java.lang.String name)
Locate and open a reference to a
Repository . |
Modifier and Type | Method and Description |
---|---|
ReceivePack |
ReceivePackFactory.create(C req,
Repository db)
Create and configure a new ReceivePack instance for a repository.
|
UploadPack |
UploadPackFactory.create(C req,
Repository db)
Create and configure a new UploadPack instance for a repository.
|
void |
FileResolver.exportRepository(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
|
(package private) Repository |
WorkingTreeIterator.RootIgnoreNode.repository |
Modifier and Type | Method and Description |
---|---|
static TreeWalk |
TreeWalk.forPath(Repository repo,
ObjectReader reader,
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,
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.
|
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.
|
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.
|
TreeWalk(Repository repo,
ObjectReader or,
boolean closeReader) |
Modifier and Type | Method and Description |
---|---|
LfsFactory.LfsInputStream |
LfsFactory.applyCleanFilter(Repository db,
java.io.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.
|
ObjectLoader |
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.
|
java.io.File |
FS.findHook(Repository repository,
java.lang.String hookName)
Tries to find a hook matching the given one in the given repository.
|
static Attributes |
LfsFactory.getAttributesForPath(Repository db,
java.lang.String path) |
static Attributes |
LfsFactory.getAttributesForPath(Repository db,
java.lang.String path,
RevCommit commit)
Get attributes for given path and commit
|
private java.io.File |
FS.getHooksDirectory(Repository repository) |
PrePushHook |
LfsFactory.getPrePushHook(Repository repo,
java.io.PrintStream outputStream)
Retrieve a pre-push hook to be applied using the default error stream.
|
PrePushHook |
LfsFactory.getPrePushHook(Repository repo,
java.io.PrintStream outputStream,
java.io.PrintStream errorStream)
Retrieve a pre-push hook to be applied.
|
private java.io.File |
FS.getRunDirectory(Repository repository,
java.lang.String hookName) |
protected ProcessResult |
FS.internalRunHookIfPresent(Repository repository,
java.lang.String hookName,
java.lang.String[] args,
java.io.PrintStream outRedirect,
java.io.PrintStream errRedirect,
java.lang.String stdinArgs)
|
boolean |
LfsFactory.isEnabled(Repository db) |
ProcessResult |
FS.runHookIfPresent(Repository repository,
java.lang.String hookName,
java.lang.String[] args)
Checks whether the given hook is defined for the given repository, then
runs it with the given arguments.
|
ProcessResult |
FS.runHookIfPresent(Repository repository,
java.lang.String hookName,
java.lang.String[] args,
java.io.PrintStream outRedirect,
java.io.PrintStream errRedirect,
java.lang.String stdinArgs)
Checks whether the given hook is defined for the given repository, then
runs it with the given arguments.
|
ProcessResult |
FS_POSIX.runHookIfPresent(Repository repository,
java.lang.String hookName,
java.lang.String[] args,
java.io.PrintStream outRedirect,
java.io.PrintStream errRedirect,
java.lang.String stdinArgs)
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,
java.lang.String hookName,
java.lang.String[] args,
java.io.PrintStream outRedirect,
java.io.PrintStream errRedirect,
java.lang.String stdinArgs)
Checks whether the given hook is defined for the given repository, then
runs it with the given arguments.
|
LfsFactory.LfsInstallCommand |
LfsFactory.LfsInstallCommand.setRepository(Repository repo) |