Skip to content

Commit

Permalink
completion: unite --reuse-message and --reedit-message handling
Browse files Browse the repository at this point in the history
Signed-off-by: Teemu Matilainen <teemu.matilainen@iki.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Teemu Matilainen authored and Junio C Hamano committed Oct 6, 2011
1 parent ec014ea commit f8e49e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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=*)
Expand Down

0 comments on commit f8e49e1

Please sign in to comment.