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

Re: [PATCH 2/2] --date=relative falls back to "short" format for commits older than a year

From
Jeff King <peff@peff.net>
Date
Feb 24, 2009, 05:04 UTC
Message-ID
<20090224050400.GC4615@coredump.intra.peff.net>
In-Reply-To
<49A2599E.2030406@trolltech.com>
On Mon, Feb 23, 2009 at 09:09:02AM +0100, Marius Storm-Olsen wrote:
Show 6 quoted lines
>> Another option would to give higher resolution in number of years,
>> like "3.5 years" or even "3.1 years".
>
> And using shorter names for the units would be a no-go?
>
>   "3y 2m ago"    <--

Personally I think that looks terrible. But I recognize that it is very subjective. The only objective thing I can say is that "m" is not a unique prefix of a time unit, due to "minutes". Yes, it is obvious if you see the "y" first, but I actually parse the relative time backwards in my head and think "2 minutes ago, oh wait, 3 years, that must be months".

-Peff
Previous: Marius Storm-OlsenNext: Marius Storm-Olsen
Message 9 of 15 in “--date=relative falls back to "short" format for commits older than a year”
  1. 2/2 --date=relative falls back to "short" format for commits older than a yeareletuchy@gmail.com, Feb 20, 2009
  2. Linus TorvaldsFeb 20, 2009
  3. Eugene LetuchyFeb 20, 2009
  4. Junio C HamanoFeb 21, 2009
  5. Jeff KingFeb 22, 2009
  6. Junio C HamanoFeb 23, 2009
  7. Jeff KingFeb 23, 2009
  8. Marius Storm-OlsenFeb 23, 2009
  9. Jeff KingFeb 24, 2009
  10. Marius Storm-OlsenFeb 24, 2009
  11. Jeff KingFeb 24, 2009
  12. Junio C HamanoFeb 23, 2009
  13. Jeff KingFeb 24, 2009
  14. Junio C HamanoFeb 24, 2009
  15. Jeff KingFeb 24, 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.