Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
completion: complete values for log.date
author
Stephen Boyd
<bebarino@gmail.com>
Mon, 4 May 2009 06:25:34 +0000
(23:25 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 6 May 2009 05:05:37 +0000
(22:05 -0700)
Add raw to the date formats too.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
9b82d63
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 023b0c9974b1778b4be5a2f5fe66198686634a56..d67ffd9384a5649b83c41894a498c5c479f0e596 100755
(executable)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-1116,6
+1116,7
@@
__git_log_shortlog_options="
"
__git_log_pretty_formats="oneline short medium full fuller email raw format:"
"
__git_log_pretty_formats="oneline short medium full fuller email raw format:"
+__git_log_date_formats="relative iso8601 rfc2822 short local default raw"
_git_log ()
{
_git_log ()
{
@@
-1139,9
+1140,7
@@
_git_log ()
return
;;
--date=*)
return
;;
--date=*)
- __gitcomp "
- relative iso8601 rfc2822 short local default
- " "" "${cur##--date=}"
+ __gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
return
;;
--*)
return
;;
--*)
@@
-1352,6
+1351,10
@@
_git_config ()
__gitcomp "man info web html"
return
;;
__gitcomp "man info web html"
return
;;
+ log.date)
+ __gitcomp "$__git_log_date_formats"
+ return
+ ;;
*.*)
COMPREPLY=()
return
*.*)
COMPREPLY=()
return