git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] Wire new date formats to --date=<format> parser.

From
JGJan-Benedict Glaw <jbglaw@lug-owl.de>
Date
Jul 14, 2007, 06:44 UTC
Message-ID
<20070714064451.GH11809@lug-owl.de>
In-Reply-To
<7vodiflc3v.fsf_-_@assigned-by-dhcp.cox.net>
On Fri, 2007-07-13 23:43:00 -0700, Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
> --- 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"?
Show 6 quoted lines
> +					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  :
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 13 in “Support output ISO 8601 format dates”
  1. Support output ISO 8601 format datesRobin Rosenberg, Jul 13, 2007
  2. Junio C HamanoJul 13, 2007
  3. Support output ISO 8601 format datesRobin Rosenberg, Jul 13, 2007
  4. 1/2 Make show_rfc2822_date() just another date output format.Junio C Hamano, Jul 14, 2007
  5. 2/2 Wire new date formats to --date=<format> parser.Junio C Hamano, Jul 14, 2007
  6. Jan-Benedict GlawJul 14, 2007
  7. Junio C HamanoJul 14, 2007
  8. Robin RosenbergJul 14, 2007
  9. Document new --date=<format>Junio C Hamano, Jul 14, 2007
  10. Jan HudecJul 15, 2007
  11. Junio C HamanoJul 15, 2007
  12. Robin RosenbergJul 15, 2007
  13. Linus TorvaldsJul 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.