1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-28 16:02:01 +03:00

support creating annotated tags

This commit is contained in:
Francisco Miamoto
2021-09-11 19:19:25 -03:00
committed by Jesse Duffield
parent 4df003cc44
commit b1d6ccddfb
3 changed files with 41 additions and 4 deletions

View File

@ -8,6 +8,10 @@ func (c *GitCommand) CreateLightweightTag(tagName string, commitSha string) erro
return c.RunCommand("git tag -- %s %s", c.OSCommand.Quote(tagName), commitSha)
}
func (c *GitCommand) CreateAnnotatedTag(tagName, commitSha, msg string) error {
return c.RunCommand("git tag %s %s -m '%s'", tagName, commitSha, msg)
}
func (c *GitCommand) DeleteTag(tagName string) error {
return c.RunCommand("git tag -d %s", c.OSCommand.Quote(tagName))
}