Allow deleting remote tags/branches from local tag/branch views (#2738)

This commit is contained in:
Federico 2023-08-10 09:39:26 +02:00 committed by GitHub
parent c43830b027
commit 0df5cb1286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 487 additions and 158 deletions

View file

@ -85,8 +85,8 @@ func (self *BranchCommands) CurrentBranchName() (string, error) {
return "", err
}
// Delete delete branch
func (self *BranchCommands) Delete(branch string, force bool) error {
// LocalDelete delete branch locally
func (self *BranchCommands) LocalDelete(branch string, force bool) error {
cmdArgs := NewGitCmd("branch").
ArgIfElse(force, "-D", "-d").
Arg(branch).