git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Boyd <bebarino@gmail.com>
To: "Shawn O. Pearce" <spearce@spearce.org>
Cc: git@vger.kernel.org
Subject: [PATCH 4/5] completion: complete values for log.date
Date: Sun,  3 May 2009 23:25:34 -0700	[thread overview]
Message-ID: <1241418335-18474-4-git-send-email-bebarino@gmail.com> (raw)
In-Reply-To: <1241418335-18474-3-git-send-email-bebarino@gmail.com>

Add raw to the date formats too.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 contrib/completion/git-completion.bash |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 023b0c9..d67ffd9 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
-- 
1.6.2.3

  reply	other threads:[~2009-05-04  6:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-04  6:25 [PATCH 1/5] completion: add missing configuration variables to _git_config() Stephen Boyd
2009-05-04  6:25 ` [PATCH 2/5] completion: add {gui,diff,merge}tool, man, and pager config variables Stephen Boyd
2009-05-04  6:25   ` [PATCH 3/5] completion: complete values for help.format Stephen Boyd
2009-05-04  6:25     ` Stephen Boyd [this message]
2009-05-04  6:25       ` [PATCH 5/5] completion: complete values for send-email Stephen Boyd
2009-05-04 14:29         ` Shawn O. Pearce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1241418335-18474-4-git-send-email-bebarino@gmail.com \
    --to=bebarino@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=spearce@spearce.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).