summaryrefslogtreecommitdiffstats
path: root/gitcommands.go
diff options
context:
space:
mode:
authorHubert Baumgartner <hubert@chilicode.com>2018-08-10 16:46:03 +0200
committerHubert Baumgartner <hubert@chilicode.com>2018-08-10 16:46:03 +0200
commit48cea4e1c43d6a191062d33bf8b5cc9ecef3e528 (patch)
treee6ff474561ef7e66e549893c41979f1ee6a50c2a /gitcommands.go
parentf20121cb0bca9355d6a08d8d8153b2a34ccf5120 (diff)
added branch delete functionallity
Diffstat (limited to 'gitcommands.go')
-rw-r--r--gitcommands.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitcommands.go b/gitcommands.go
index 2d073aec9..2c68f561e 100644
--- a/gitcommands.go
+++ b/gitcommands.go
@@ -459,6 +459,10 @@ func gitNewBranch(name string) (string, error) {
return runDirectCommand("git checkout -b " + name)
}
+func gitDeleteBranch(branch string) (string, error) {
+ return runCommand("git branch -d " + branch)
+}
+
func gitListStash() (string, error) {
return runDirectCommand("git stash list")
}