Skip to content

Commit 672c68c

Browse files
bebarinogitster
authored andcommitted
completion: complete values for log.date
Add raw to the date formats too. Signed-off-by: Stephen Boyd <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9b82d63 commit 672c68c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

contrib/completion/git-completion.bash

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,7 @@ __git_log_shortlog_options="
11161116
"
11171117

11181118
__git_log_pretty_formats="oneline short medium full fuller email raw format:"
1119+
__git_log_date_formats="relative iso8601 rfc2822 short local default raw"
11191120

11201121
_git_log ()
11211122
{
@@ -1139,9 +1140,7 @@ _git_log ()
11391140
return
11401141
;;
11411142
--date=*)
1142-
__gitcomp "
1143-
relative iso8601 rfc2822 short local default
1144-
" "" "${cur##--date=}"
1143+
__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
11451144
return
11461145
;;
11471146
--*)
@@ -1352,6 +1351,10 @@ _git_config ()
13521351
__gitcomp "man info web html"
13531352
return
13541353
;;
1354+
log.date)
1355+
__gitcomp "$__git_log_date_formats"
1356+
return
1357+
;;
13551358
*.*)
13561359
COMPREPLY=()
13571360
return

0 commit comments

Comments
 (0)