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 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, showRemoteMessagesabbreviateRef, containsHelp, die, die, die, die, execute, getErrorWriter, getOutputWriter, getRepository, getResourceBundle, init, initRaw, parseArguments, printUsage, printUsageAndExit, printUsageAndExit, resolve, setCommandNameprivate java.lang.String remoteName
private java.lang.String branch
private boolean noCheckout
private boolean isBare
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 TextBuiltinTextBuiltin.db/TextBuiltin.getRepository() is requiredprotected void run()
throws java.lang.Exception
This method should only be invoked by TextBuiltin.execute(String[]).
run in class TextBuiltinjava.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.Callbacksubmodules - the submodulespublic void cloningSubmodule(java.lang.String path)
cloningSubmodule in interface CloneCommand.Callbackpath - the submodule pathpublic void checkingOut(AnyObjectId commit, java.lang.String path)
checkingOut in interface CloneCommand.Callbackcommit - the id of the commit being checked outpath - the submodule path