From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Robin Rosenberg <robin.rosenberg@dewire.com>
Subject: Re: [PATCH 2/2] Wire new date formats to --date=<format> parser.
Date: Sat, 14 Jul 2007 08:44:51 +0200 [thread overview]
Message-ID: <20070714064451.GH11809@lug-owl.de> (raw)
In-Reply-To: <7vodiflc3v.fsf_-_@assigned-by-dhcp.cox.net>
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
On Fri, 2007-07-13 23:43:00 -0700, Junio C Hamano <gitster@pobox.com> wrote:
> --- a/revision.c
> +++ b/revision.c
> @@ -1133,6 +1133,14 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
> if (!strncmp(arg, "--date=", 7)) {
> if (!strcmp(arg + 7, "relative"))
> revs->date_mode = DATE_RELATIVE;
> + else if (!strcmp(arg + 7, "iso8601") ||
> + !strcmp(arg + 7, "iso"))
> + revs->date_mode = DATE_ISO8601;
> + else if (!strcmp(arg + 7, "rfc2822") ||
> + !strcmp(arg + 7, "rfc"))
Maybe also add "rfc822"?
> + revs->date_mode = DATE_RFC2822;
> + else if (!strcmp(arg + 7, "short"))
> + revs->date_mode = DATE_SHORT;
> else if (!strcmp(arg + 7, "local"))
> revs->date_mode = DATE_LOCAL;
> else if (!strcmp(arg + 7, "default"))
MfG, JBG
--
Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481
Signature of: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
the second :
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-07-14 6:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-13 20:22 [PATCH] Support output ISO 8601 format dates Robin Rosenberg
2007-07-13 22:11 ` Junio C Hamano
2007-07-13 23:00 ` Robin Rosenberg
2007-07-14 6:42 ` [PATCH 1/2] Make show_rfc2822_date() just another date output format Junio C Hamano
2007-07-14 6:43 ` [PATCH 2/2] Wire new date formats to --date=<format> parser Junio C Hamano
2007-07-14 6:44 ` Jan-Benedict Glaw [this message]
2007-07-14 6:54 ` Junio C Hamano
2007-07-14 10:29 ` Robin Rosenberg
2007-07-14 6:49 ` [PATCH] Document new --date=<format> Junio C Hamano
2007-07-15 21:23 ` [PATCH] Support output ISO 8601 format dates Jan Hudec
2007-07-15 22:14 ` Junio C Hamano
2007-07-15 23:19 ` Robin Rosenberg
2007-07-15 23:57 ` Linus Torvalds
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=20070714064451.GH11809@lug-owl.de \
--to=jbglaw@lug-owl.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=robin.rosenberg@dewire.com \
/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).