completion: complete values for log.date
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>
Stephen Boyd committed
May 3, 2009 at 23:25 UTC
672c68cbb90921a133ddf71d002342a448b6dd38
1 file changed
+6
-3
contrib/completion/git-completion.bash
+6
-3
@@ -1116,6 +1116,7 @@ __git_log_shortlog_options="
1116
"
1117
1118
__git_log_pretty_formats="oneline short medium full fuller email raw format:"
1119
+__git_log_date_formats="relative iso8601 rfc2822 short local default raw"
1120
1121
_git_log ()
1122
{
@@ -1139,9 +1140,7 @@ _git_log ()
1140
return
1141
;;
1142
--date=*)
1142
- __gitcomp "
1143
- relative iso8601 rfc2822 short local default
1144
- " "" "${cur##--date=}"
1143
+ __gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
1144
return
1145
;;
1146
--*)
@@ -1352,6 +1351,10 @@ _git_config ()
1351
__gitcomp "man info web html"
1352
return
1353
;;
1354
+ log.date)
1355
+ __gitcomp "$__git_log_date_formats"
1356
+ return
1357
+ ;;
1358
*.*)
1359
COMPREPLY=()
1360
return