|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jgit.api.GitCommand<RevTag>
org.eclipse.jgit.api.TagCommand
public class TagCommand
A class used to execute a Tag command. It has setters for all
supported options and arguments of this command and a call() method
to finally execute the command.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jgit.api.GitCommand |
|---|
repo |
| Constructor Summary | |
|---|---|
protected |
TagCommand(Repository repo)
|
| Method Summary | |
|---|---|
RevTag |
call()
Executes the tag command with all the options and parameters
collected by the setter methods of this class. |
String |
getMessage()
|
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(String message)
|
TagCommand |
setName(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. |
| Methods inherited from class org.eclipse.jgit.api.GitCommand |
|---|
checkCallable, getRepository, setCallable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TagCommand(Repository repo)
repo - | Method Detail |
|---|
public RevTag call()
throws JGitInternalException,
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())
RevTag object representing the successful tag
NoHeadException - when called on a git repo without a HEAD reference
JGitInternalException - a low-level exception of JGit has occurred. The original
exception can be retrieved by calling
Throwable.getCause(). Expect only
IOException's to be wrapped.
ConcurrentRefUpdateException
InvalidTagNameExceptionpublic TagCommand setName(String name)
name - the tag name used for the tag
thispublic String getName()
tagpublic String getMessage()
tagpublic TagCommand setMessage(String message)
message - the tag message used for the tag
thispublic 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 -
this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||