completion: unite --reuse-message and --reedit-message for 'notes'
[gitweb.git] / contrib / completion / git-completion.bash
index e6fd43bb2d5fb759ea3b3d89264f664e818646a0..4a857b680fff613548838f52540a2c505c2c2b11 100755 (executable)
@@ -1727,11 +1727,9 @@ _git_notes ()
                        ;;
                esac
                ;;
-       add,--reuse-message=*|append,--reuse-message=*)
-               __gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
-               ;;
+       add,--reuse-message=*|append,--reuse-message=*|\
        add,--reedit-message=*|append,--reedit-message=*)
-               __gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
+               __gitcomp "$(__git_refs)" "" "${cur#*=}"
                ;;
        add,--*|append,--*)
                __gitcomp '--file= --message= --reedit-message=