public class TagCommand extends GitCommand<Ref>
Tag command. It has setters for all
supported options and arguments of this command and a call() method
to finally execute the command.repo| Modifier | Constructor and Description |
|---|---|
protected |
TagCommand(Repository repo) |
| Modifier and Type | Method and Description |
|---|---|
Ref |
call()
Executes the
tag command with all the options and parameters
collected by the setter methods of this class. |
java.lang.String |
getMessage() |
java.lang.String |
getName() |
RevObject |
getObjectId() |
PersonIdent |
getTagger() |
boolean |
isForceUpdate() |
boolean |
isSigned() |
TagCommand |
setForceUpdate(boolean forceUpdate)
If set to true the Tag command may replace an existing tag object.
|
TagCommand |
setMessage(java.lang.String message) |
TagCommand |
setName(java.lang.String name) |
TagCommand |
setObjectId(RevObject id)
Sets the object id of the tag.
|
TagCommand |
setSigned(boolean signed)
If set to true the Tag command creates a signed tag object.
|
TagCommand |
setTagger(PersonIdent tagger)
Sets the tagger of the tag.
|
checkCallable, getRepository, setCallableprotected TagCommand(Repository repo)
repo - public Ref call() throws GitAPIException, ConcurrentRefUpdateException, InvalidTagNameException, NoHeadException
tag command with all the options and parameters
collected by the setter methods of this class. Each instance of this
class should only be used for one invocation of the command (means: one
call to call())call in interface java.util.concurrent.Callable<Ref>call in class GitCommand<Ref>Ref a ref pointing to a tagNoHeadException - when called on a git repo without a HEAD referenceGitAPIException - or subclass thereof when an error occursConcurrentRefUpdateExceptionInvalidTagNameExceptionpublic TagCommand setName(java.lang.String name)
name - the tag name used for the tagthispublic java.lang.String getName()
tagpublic java.lang.String getMessage()
tagpublic TagCommand setMessage(java.lang.String message)
message - the tag message used for the tagthispublic boolean isSigned()
public TagCommand setSigned(boolean signed)
signed - thispublic TagCommand setTagger(PersonIdent tagger)
tagger - thispublic PersonIdent getTagger()
public RevObject getObjectId()
public TagCommand setObjectId(RevObject id)
id - thispublic boolean isForceUpdate()
public TagCommand setForceUpdate(boolean forceUpdate)
forceUpdate - thisCopyright © 2012. All Rights Reserved.