class Clone extends AbstractFetchCommand implements CloneCommand.Callback
TextBuiltin.TerminatedByHelpException
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
branch |
private boolean |
cloneSubmodules |
private boolean |
isBare |
private boolean |
isMirror |
private java.lang.String |
localName |
private boolean |
noCheckout |
private java.lang.Boolean |
quiet |
private java.lang.String |
remoteName |
private java.lang.String |
sourceUri |
Constructor and Description |
---|
Clone() |
Modifier and Type | Method and Description |
---|---|
void |
checkingOut(AnyObjectId commit,
java.lang.String path)
Notify checkout of commit
|
void |
cloningSubmodule(java.lang.String path)
Notify starting to clone a submodule.
|
void |
initializedSubmodules(java.util.Collection<java.lang.String> submodules)
Notify initialized submodules.
|
protected boolean |
requiresRepository()
If this command requires a repository.
|
protected void |
run()
Perform the actions of this command.
|
showFetchResult, showRemoteMessages
abbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, resolve, setCommandName
private java.lang.String remoteName
private java.lang.String branch
private boolean noCheckout
private boolean isBare
private boolean isMirror
private java.lang.Boolean quiet
private boolean cloneSubmodules
private java.lang.String sourceUri
private java.lang.String localName
protected final boolean requiresRepository()
requiresRepository
in class TextBuiltin
TextBuiltin.db
/TextBuiltin.getRepository()
is requiredprotected void run() throws java.lang.Exception
This method should only be invoked by TextBuiltin.execute(String[])
.
run
in class TextBuiltin
java.lang.Exception
- an error occurred while processing the command. The main
framework will catch the exception and print a message on
standard error.public void initializedSubmodules(java.util.Collection<java.lang.String> submodules)
initializedSubmodules
in interface CloneCommand.Callback
submodules
- the submodulespublic void cloningSubmodule(java.lang.String path)
cloningSubmodule
in interface CloneCommand.Callback
path
- the submodule pathpublic void checkingOut(AnyObjectId commit, java.lang.String path)
checkingOut
in interface CloneCommand.Callback
commit
- the id of the commit being checked outpath
- the submodule path