bash completion: add --format= and --oneline options for "git log"
We also add --format= completion for "git show". Signed-off-by: Teemu Likonen <tlikonen@iki.fi> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
bb93afd515
commit
72de29c24f
@ -1014,6 +1014,11 @@ _git_log ()
|
|||||||
" "" "${cur##--pretty=}"
|
" "" "${cur##--pretty=}"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--format=*)
|
||||||
|
__gitcomp "$__git_log_pretty_formats
|
||||||
|
" "" "${cur##--format=}"
|
||||||
|
return
|
||||||
|
;;
|
||||||
--date=*)
|
--date=*)
|
||||||
__gitcomp "
|
__gitcomp "
|
||||||
relative iso8601 rfc2822 short local default
|
relative iso8601 rfc2822 short local default
|
||||||
@ -1029,7 +1034,7 @@ _git_log ()
|
|||||||
--follow
|
--follow
|
||||||
--abbrev-commit --abbrev=
|
--abbrev-commit --abbrev=
|
||||||
--relative-date --date=
|
--relative-date --date=
|
||||||
--pretty=
|
--pretty= --format= --oneline
|
||||||
--cherry-pick
|
--cherry-pick
|
||||||
--graph
|
--graph
|
||||||
--decorate
|
--decorate
|
||||||
@ -1541,8 +1546,13 @@ _git_show ()
|
|||||||
" "" "${cur##--pretty=}"
|
" "" "${cur##--pretty=}"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
--format=*)
|
||||||
|
__gitcomp "$__git_log_pretty_formats
|
||||||
|
" "" "${cur##--format=}"
|
||||||
|
return
|
||||||
|
;;
|
||||||
--*)
|
--*)
|
||||||
__gitcomp "--pretty=
|
__gitcomp "--pretty= --format=
|
||||||
$__git_diff_common_options
|
$__git_diff_common_options
|
||||||
"
|
"
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user