Code

completion: unite --reuse-message and --reedit-message for 'notes'
authorSZEDER Gábor <szeder@ira.uka.de>
Sat, 8 Oct 2011 01:06:34 +0000 (03:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Oct 2011 17:00:13 +0000 (10:00 -0700)
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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=