public class GitCheckOutCommand extends AbstractCheckOutCommand implements GitCommand
Constructor and Description |
---|
GitCheckOutCommand() |
Modifier and Type | Method and Description |
---|---|
private org.codehaus.plexus.util.cli.Commandline |
createCloneCommand(GitScmProviderRepository repository,
java.io.File workingDirectory,
ScmVersion version,
boolean binary,
boolean shallow)
create a git-clone repository command
|
static org.codehaus.plexus.util.cli.Commandline |
createCommandLine(GitScmProviderRepository repository,
java.io.File workingDirectory,
ScmVersion version) |
private org.codehaus.plexus.util.cli.Commandline |
createPullCommand(GitScmProviderRepository repository,
java.io.File workingDirectory,
ScmVersion version)
create a git-pull repository command
|
protected CheckOutScmResult |
executeCheckOutCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
ScmVersion version,
boolean recursive,
boolean shallow)
The overriden
executeCommand(ScmProviderRepository, ScmFileSet, CommandParameters) in this class will
not call this method! |
ScmResult |
executeCommand(ScmProviderRepository repo,
ScmFileSet fileSet,
CommandParameters parameters)
For git, the given repository is a remote one.
|
private void |
forceBinary(org.codehaus.plexus.util.cli.Commandline cl,
boolean binary) |
executeCheckOutCommand
execute, getLogger, setLogger
public ScmResult executeCommand(ScmProviderRepository repo, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
executeCommand
in class AbstractCheckOutCommand
ScmException
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, java.io.File workingDirectory, ScmVersion version)
private org.codehaus.plexus.util.cli.Commandline createCloneCommand(GitScmProviderRepository repository, java.io.File workingDirectory, ScmVersion version, boolean binary, boolean shallow)
private void forceBinary(org.codehaus.plexus.util.cli.Commandline cl, boolean binary)
private org.codehaus.plexus.util.cli.Commandline createPullCommand(GitScmProviderRepository repository, java.io.File workingDirectory, ScmVersion version)
protected CheckOutScmResult executeCheckOutCommand(ScmProviderRepository repo, ScmFileSet fileSet, ScmVersion version, boolean recursive, boolean shallow) throws ScmException
executeCommand(ScmProviderRepository, ScmFileSet, CommandParameters)
in this class will
not call this method!
Execute Check out command line.
executeCheckOutCommand
in class AbstractCheckOutCommand
repo
- not nullfileSet
- not nullversion
- not nullrecursive
- true
if recursive check out is wanted, false
otherwise.shallow
- true
if shallow check out is wanted, false
otherwise.ScmException
- if any