aboutsummaryrefslogtreecommitdiffstats
path: root/commands/label add.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-17 14:36:51 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-17 14:36:51 +0200
commit5eaf9e83e7cd56b8bb4915193d13adfb60575b21 (patch)
tree52fe0727ea445cf3d7fbfa64e916b09f6009f0ef /commands/label add.go
parent2965b70f4f462b3532bb380c5206e2d940f68c65 (diff)
downloadgit-bug-5eaf9e83e7cd56b8bb4915193d13adfb60575b21.tar.gz
commands: add a "label rm" command to remove labels from a bug
Diffstat (limited to 'commands/label add.go')
-rw-r--r--commands/label add.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/label add.go b/commands/label add.go
index c7a37be8..fccbfaa3 100644
--- a/commands/label add.go
+++ b/commands/label add.go
@@ -28,14 +28,15 @@ func runLabelAdd(cmd *cobra.Command, args []string) error {
}
changes, err := b.ChangeLabels(add, nil)
- if err != nil {
- return err
- }
for _, change := range changes {
fmt.Println(change)
}
+ if err != nil {
+ return err
+ }
+
return b.Commit()
}