Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: unite --format and --pretty for 'log' and 'show'
author
SZEDER Gábor
<szeder@ira.uka.de>
Sat, 8 Oct 2011 01:09:34 +0000
(
03:09
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 10 Oct 2011 17:02:55 +0000
(10:02 -0700)
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a8f89bf
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 4a857b680fff613548838f52540a2c505c2c2b11..5c649c6f46524dab6e43425a60cdf29876d12763 100755
(executable)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-1604,14
+1604,9
@@
_git_log ()
local cur
_get_comp_words_by_ref -n =: cur
case "$cur" in
local cur
_get_comp_words_by_ref -n =: cur
case "$cur" in
- --pretty=*)
+ --pretty=*
|--format=*
)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
__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=*)
return
;;
--date=*)
@@
-2456,14
+2451,9
@@
_git_show ()
local cur
_get_comp_words_by_ref -n =: cur
case "$cur" in
local cur
_get_comp_words_by_ref -n =: cur
case "$cur" in
- --pretty=*)
- __gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
- " "" "${cur##--pretty=}"
- return
- ;;
- --format=*)
+ --pretty=*|--format=*)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
__gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases)
- " "" "${cur#
#--format
=}"
+ " "" "${cur#
*
=}"
return
;;
--*)
return
;;
--*)