public class GitCheckOutCommand extends AbstractCheckOutCommand implements GitCommand
| Constructor and Description |
|---|
GitCheckOutCommand() |
| 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.
|
executeCheckOutCommandexecute, getLogger, setLoggerpublic GitCheckOutCommand()
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 AbstractCheckOutCommandScmExceptionpublic 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 AbstractCheckOutCommandrepo - 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–2021 The Apache Software Foundation. All rights reserved.