|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface GitCommandExecutor
Interface for supporting the execution of GitCommand instances. It
gives GitCommands access to low-level (plumbing) git tasks while
abstracting away the mechanics of concurrency and multithreading.
Users should use StageGitCommand instead of using this class
directly.
| Method Summary | |
|---|---|
Computation<ImmutableSet<ObjectId>> |
copyObjects(Repository source,
ImmutableSet<ObjectId> objects,
Repository destination)
Returns a new computation for copying a set of objects from one repository to another. |
Computation<MaterializedEntry> |
materializeEntry(Repository repository,
Entry entry,
Directory target)
Returns a new computation for materializing a Git tree entry at the specified target directory. |
Computation<Repository> |
openRepository(Directory directory)
Returns a new computation for opening a Git repository located at the specified directory. |
Computation<Blob> |
readBlob(Repository repository,
ObjectId id)
Returns a new computation for reading a blob object from a repository. |
Computation<Commit> |
readCommit(Repository repository,
ObjectId id)
Returns a new computation for reading a commit object from a repository. |
Computation<Tree> |
readTree(Repository repository,
ObjectId id)
Returns a new computation for reading a tree object from a repository. |
Computation<MaybeObjectId> |
resolve(Repository repository,
RefName ref)
Returns a new computation for resolving a Git reference. |
Computation<MaybeObjectId> |
updateRef(Repository repository,
RefName ref,
ObjectId newValue)
Returns a new computation for updating a Git reference. |
Computation<ObjectId> |
writeCommit(Repository repository,
MutableCommit commit)
Returns a new computation for writing a commit object (as a loose object) to a repository. |
Computation<ObjectId> |
writeTree(GitCommand<?> command,
Repository repository,
MutableTree tree)
Returns a new computation for recursively writing tree objects to a repository. |
| Methods inherited from interface br.com.objectos.git.GitExecutor |
|---|
submit |
| Method Detail |
|---|
Computation<ImmutableSet<ObjectId>> copyObjects(Repository source,
ImmutableSet<ObjectId> objects,
Repository destination)
This is the asynchronous execution of the
GitEngine.copyObjects(Repository, ImmutableSet, Repository) task.
source - the source repository containing the objects. Git objects will be
read from this repository.objects - the ids (hash values) of the objects to be copieddestination - the destination repository. Git objects will (possibly) be written
to this repository
Computation<MaterializedEntry> materializeEntry(Repository repository,
Entry entry,
Directory target)
This is the asynchronous execution of the
GitEngine.materializeEntry(Repository, Entry, Directory) task.
repository - repository to read blob contents from (if necessary)entry - the entry to be materializedtarget - the target directory
Computation<Repository> openRepository(Directory directory)
This is the asynchronous execution of the
GitEngine.openRepository(Directory) task.
directory - the directory where a Git repository is located
Computation<Blob> readBlob(Repository repository,
ObjectId id)
This is the asynchronous execution of the
GitEngine.readBlob(Repository, ObjectId) task.
repository - the git repository from which to read the commitid - the unique hash value of the blob to read
Computation<Commit> readCommit(Repository repository,
ObjectId id)
This is the asynchronous execution of the
GitEngine.readCommit(Repository, ObjectId) task.
repository - the git repository from which to read the commitid - the unique hash value of the commit to read
Computation<Tree> readTree(Repository repository,
ObjectId id)
This is the asynchronous execution of the
GitEngine.readTree(Repository, ObjectId) task.
repository - the git repository from which to read the treeid - the unique hash value of the tree to read
Computation<MaybeObjectId> resolve(Repository repository,
RefName ref)
This is the asynchronous execution of the
GitEngine.resolve(Repository, RefName) task.
repository - the repository for which the reference will be resolvedref - the Git reference to be resolved
Computation<MaybeObjectId> updateRef(Repository repository,
RefName ref,
ObjectId newValue)
This is the asynchronous execution of the
GitEngine.updateRef(Repository, RefName, ObjectId) task.
repository - the repository for which the reference will be updatedref - the Git reference to be updatednewValue - the new value for the reference
Computation<ObjectId> writeCommit(Repository repository,
MutableCommit commit)
This is the asynchronous execution of the
GitEngine.writeCommit(Repository, MutableCommit) task.
repository - the git repository where the commit is to be writtencommit - a MutableCommit instance containing all the information to
be recorded as a commit object
Computation<ObjectId> writeTree(GitCommand<?> command,
Repository repository,
MutableTree tree)
This is the asynchronous execution of the
GitEngine.writeTree(Repository, MutableTree) task.
command - the requestor of this computationrepository - the git repository where the tree is to be writtentree - a MutableTree to be written
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||