Skip to content

Commit a8f89bf

Browse files
szedergitster
authored andcommitted
completion: unite --reuse-message and --reedit-message for 'notes'
Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 77653ab commit a8f89bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,11 +1727,9 @@ _git_notes ()
17271727
;;
17281728
esac
17291729
;;
1730-
add,--reuse-message=*|append,--reuse-message=*)
1731-
__gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
1732-
;;
1730+
add,--reuse-message=*|append,--reuse-message=*|\
17331731
add,--reedit-message=*|append,--reedit-message=*)
1734-
__gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
1732+
__gitcomp "$(__git_refs)" "" "${cur#*=}"
17351733
;;
17361734
add,--*|append,--*)
17371735
__gitcomp '--file= --message= --reedit-message=

0 commit comments

Comments
 (0)