mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
commands: detect when an edit title doesn't change it and abort the operation
This commit is contained in:
parent
ac29b8253e
commit
18f5c1632f
@ -38,6 +38,10 @@ func runTitleEdit(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
}
|
||||
|
||||
if titleEditTitle == snap.Title {
|
||||
fmt.Println("No change, aborting.")
|
||||
}
|
||||
|
||||
err = b.SetTitle(titleEditTitle)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user