public class GitCheckOutCommand extends AbstractCheckOutCommand implements GitCommand
logger
Constructor and Description |
---|
GitCheckOutCommand(Map<String,String> environmentVariables) |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.plexus.util.cli.Commandline |
createCommandLine(GitScmProviderRepository repository,
File workingDirectory,
ScmVersion version) |
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.
|
executeCheckOutCommand
execute
public GitCheckOutCommand(Map<String,String> environmentVariables)
public ScmResult executeCommand(ScmProviderRepository repo, ScmFileSet fileSet, CommandParameters parameters) throws ScmException
TODO We currently assume a '.git' directory, so this does not work for --bare repos
executeCommand
in class AbstractCheckOutCommand
ScmException
public static org.codehaus.plexus.util.cli.Commandline createCommandLine(GitScmProviderRepository repository, 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 anyCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.