/** * Return a command object to execute a {@code Tag} command * * @see <a href= * "http://www.kernel.org/pub/software/scm/git/docs/git-tag.html" >Git * documentation about Tag</a> * @return a {@link org.eclipse.jgit.api.TagCommand} used to collect all * optional parameters and to finally execute the {@code Tag} * command */ public TagCommand tag() { return new TagCommand(repo); }
/** * Returns a command object to execute a {@code Tag} command * * @see <a * href="http://www.kernel.org/pub/software/scm/git/docs/git-tag.html" * >Git documentation about Tag</a> * @return a {@link TagCommand} used to collect all optional parameters and * to finally execute the {@code Tag} command */ public TagCommand tag() { return new TagCommand(repo); }
/** * Return a command object to execute a {@code Tag} command * * @see <a href= * "http://www.kernel.org/pub/software/scm/git/docs/git-tag.html" >Git * documentation about Tag</a> * @return a {@link org.eclipse.jgit.api.TagCommand} used to collect all * optional parameters and to finally execute the {@code Tag} * command */ public TagCommand tag() { return new TagCommand(repo); }
TagCommand tagCmd = new TagCommand(); tagCmd.setTag(tag); tagCmd.setOverrideExistingTag(true);