Code

completion: unite --reuse-message and --reedit-message handling
authorTeemu Matilainen <teemu.matilainen@iki.fi>
Thu, 6 Oct 2011 18:40:29 +0000 (21:40 +0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Oct 2011 22:11:49 +0000 (15:11 -0700)
Signed-off-by: Teemu Matilainen <teemu.matilainen@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 840ae38760a5de84b369b208a52cc579ce478378..43a7a36f0638fe12274ae94117c3c0f4c14cc2d1 100755 (executable)
@@ -1287,12 +1287,8 @@ _git_commit ()
                        " "" "${cur##--cleanup=}"
                return
                ;;
-       --reuse-message=*)
-               __gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
-               return
-               ;;
-       --reedit-message=*)
-               __gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
+       --reuse-message=*|--reedit-message=*)
+               __gitcomp "$(__git_refs)" "" "${cur#*=}"
                return
                ;;
        --untracked-files=*)