Skip to content

Commit f8e49e1

Browse files
tmatilaigitster
authored andcommitted
completion: unite --reuse-message and --reedit-message handling
Signed-off-by: Teemu Matilainen <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ec014ea commit f8e49e1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,12 +1287,8 @@ _git_commit ()
12871287
" "" "${cur##--cleanup=}"
12881288
return
12891289
;;
1290-
--reuse-message=*)
1291-
__gitcomp "$(__git_refs)" "" "${cur##--reuse-message=}"
1292-
return
1293-
;;
1294-
--reedit-message=*)
1295-
__gitcomp "$(__git_refs)" "" "${cur##--reedit-message=}"
1290+
--reuse-message=*|--reedit-message=*)
1291+
__gitcomp "$(__git_refs)" "" "${cur#*=}"
12961292
return
12971293
;;
12981294
--untracked-files=*)

0 commit comments

Comments
 (0)