1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

Add option to delete local and remote tag

This commit is contained in:
Anvar Umuraliev
2025-01-27 17:43:48 +01:00
committed by Jesse Duffield
parent abf914c923
commit 7db8fb8e9c
5 changed files with 145 additions and 0 deletions

View File

@ -190,6 +190,10 @@ func (self *Shell) Revert(ref string) *Shell {
return self.RunCommand([]string{"git", "revert", ref})
}
func (self *Shell) AssertRemoteTagNotFound(upstream, name string) *Shell {
return self.RunCommandExpectError([]string{"git", "ls-remote", "--exit-code", upstream, fmt.Sprintf("refs/tags/%s", name)})
}
func (self *Shell) CreateLightweightTag(name string, ref string) *Shell {
return self.RunCommand([]string{"git", "tag", name, ref})
}