Skip to content

Commit

Permalink
completion: complete values for log.date
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Boyd authored and Junio C Hamano committed May 6, 2009
1 parent 9b82d63 commit 672c68c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,7 @@ __git_log_shortlog_options="
"

__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 ()
{
Expand All @@ -1139,9 +1140,7 @@ _git_log ()
return
;;
--date=*)
__gitcomp "
relative iso8601 rfc2822 short local default
" "" "${cur##--date=}"
__gitcomp "$__git_log_date_formats" "" "${cur##--date=}"
return
;;
--*)
Expand Down Expand Up @@ -1352,6 +1351,10 @@ _git_config ()
__gitcomp "man info web html"
return
;;
log.date)
__gitcomp "$__git_log_date_formats"
return
;;
*.*)
COMPREPLY=()
return
Expand Down

0 comments on commit 672c68c

Please sign in to comment.