|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.api.GitCommand<Ref>
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 | |
---|---|
Ref |
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 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 Callable<Ref>
call
in class GitCommand<Ref>
Ref
a ref pointing to a tag
NoHeadException
- when called on a git repo without a HEAD reference
GitAPIException
- or subclass thereof when an error occurs
ConcurrentRefUpdateException
InvalidTagNameException
public TagCommand setName(String name)
name
- the tag name used for the tag
this
public String getName()
tag
public String getMessage()
tag
public TagCommand setMessage(String message)
message
- the tag message used for the tag
this
public boolean isSigned()
public TagCommand setSigned(boolean signed)
signed
-
this
public TagCommand setTagger(PersonIdent tagger)
tagger
-
this
public PersonIdent getTagger()
public RevObject getObjectId()
public TagCommand setObjectId(RevObject id)
id
-
this
public 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 |