diff options
author | Hubert Baumgartner <hubert@chilicode.com> | 2018-08-10 16:46:03 +0200 |
---|---|---|
committer | Hubert Baumgartner <hubert@chilicode.com> | 2018-08-10 16:46:03 +0200 |
commit | 48cea4e1c43d6a191062d33bf8b5cc9ecef3e528 (patch) | |
tree | e6ff474561ef7e66e549893c41979f1ee6a50c2a /gitcommands.go | |
parent | f20121cb0bca9355d6a08d8d8153b2a34ccf5120 (diff) |
added branch delete functionallity
Diffstat (limited to 'gitcommands.go')
-rw-r--r-- | gitcommands.go | 4 |
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") } |