aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-05-03 23:25:34 -0700
committerJunio C Hamano <gitster@pobox.com>2009-05-05 22:05:37 -0700
commit672c68cbb90921a133ddf71d002342a448b6dd38 (patch)
tree84050010b499c39033f4fea6eb312beaf2552fed /contrib
parent9b82d63b5a109112643843a8e6d1a201fdf2ec63 (diff)
downloadgit-672c68cbb90921a133ddf71d002342a448b6dd38.tar.gz
git-672c68cbb90921a133ddf71d002342a448b6dd38.tar.xz
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>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 023b0c997..d67ffd938 100755
--- 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_date_formats="relative iso8601 rfc2822 short local default raw"
_git_log ()
{
@@ -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
;;
--*)
@@ -1352,6 +1351,10 @@ _git_config ()
__gitcomp "man info web html"
return
;;
+ log.date)
+ __gitcomp "$__git_log_date_formats"
+ return
+ ;;
*.*)
COMPREPLY=()
return