1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-10 00:36:35 +02:00

completion: unite --format and --pretty for 'log' and 'show'

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
SZEDER Gábor 2011-10-08 03:09:34 +02:00 committed by Junio C Hamano
parent a8f89bfa99
commit e67d71e559

View File

@ -1604,14 +1604,9 @@ _git_log ()
local cur
_get_comp_words_by_ref -n =: cur
case "$cur" in
--pretty=*)
--pretty=*|--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
" "" "${cur##--pretty=}"
return
;;
--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
" "" "${cur##--format=}"
" "" "${cur#*=}"
return
;;
--date=*)
@ -2456,14 +2451,9 @@ _git_show ()
local cur
_get_comp_words_by_ref -n =: cur
case "$cur" in
--pretty=*)
--pretty=*|--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
" "" "${cur##--pretty=}"
return
;;
--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
" "" "${cur##--format=}"
" "" "${cur#*=}"
return
;;
--*)