br.com.objectos.git
public final class MaterializeCommand extends StageGitCommand<Directory>
To materialize a specific commit or a specific ref
from a source repository into a target directory means to
recursively create, at the target directory, the tree associated with
the commit.
In other words, this command behaves like a git clone except it does
not copy the whole history of the repository; in fact it will not create the
.git directory at the target directory at all.
| Constructor and Description |
|---|
MaterializeCommand(Directory source,
ObjectId commit,
Directory target)
Materializes from the
source repository the specified
commit to the target directory. |
MaterializeCommand(Directory source,
RefName ref,
Directory target)
Materializes from the
source repository the specified
ref to the target directory. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeStage(int stage) |
void |
formatToString(StringBuilder toString,
int level) |
copyObjects, copyTree, executeFinally, materializeEntry, openRepository, readBlob, readCommit, readTree, resolve, submit, submitAsync, toString, updateRef, writeCommit, writeTreeaddComputation, executeOne, get, getAll, getResult, goTo, hasComputations, isActive, isComputing, reset, setResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetResult, isActivepublic MaterializeCommand(Directory source, ObjectId commit, Directory target)
source repository the specified
commit to the target directory.source - the source directory containing the Git repositorycommit - the hash value of the containing pointing to the tree to be
materializedtarget - the target directorypublic MaterializeCommand(Directory source, RefName ref, Directory target)
source repository the specified
ref to the target directory.source - the source directory containing the Git repositoryref - the Git reference to be materializedtarget - the target directorypublic final void formatToString(StringBuilder toString, int level)
formatToString in interface br.com.objectos.core.object.ToStringObjectformatToString in class StageGitCommand<Directory>protected final void executeStage(int stage)
throws Exception
executeStage in class StageComputationTask<Directory>ExceptionCopyright © 2020–2022 Objectos Software LTDA. All rights reserved.