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

Re: orthogonal cases of log --date option

From
Miles Bader <miles@gnu.org>
Date
Mar 6, 2009, 01:47 UTC
Message-ID
<87bpsffmn5.fsf@catnip.gol.com>
In-Reply-To
<20090305104304.GA17760@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
>   git log --local-dates --date=default
>
> This makes the interface simpler to understand: --date remains a
> selector, and --date=local is a special case that new people don't need
> to think about or understand.
I agree, a separate option is more clear.

I suppose (as Junio later commented) that an explicit "--date-tz" option might be cool too, though I suppose 99% of the time, people would only ever specify "--date-tz=local" or "--date-gz=gmt"...

[one use-case I can think of for a more general option would be if you want to see a log from somebody else's point of view ... "when was john in san francisco doing all that hacking?"]

-Miles
-- 
The trouble with most people is that they think with their hopes or
fears or wishes rather than with their minds.  -- Will Durant
Previous: Jeff King
Message 17 of 17 in “orthogonal cases of log --date option”
  1. Miles BaderMar 3, 2009
  2. Jeff KingMar 3, 2009
  3. Junio C HamanoMar 3, 2009
  4. Jeff KingMar 5, 2009
  5. Jay SoffianMar 5, 2009
  6. Jeff KingMar 5, 2009
  7. Junio C HamanoMar 5, 2009
  8. Jeff KingMar 6, 2009
  9. Junio C HamanoMar 6, 2009
  10. Jay SoffianMar 6, 2009
  11. Junio C HamanoMar 6, 2009
  12. Jay SoffianMar 6, 2009
  13. Junio C HamanoMar 6, 2009
  14. Jeff KingMar 6, 2009
  15. Jeff KingMar 6, 2009
  16. Jeff KingMar 6, 2009
  17. Miles BaderMar 6, 2009

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.