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

Re: Gnome chose Git

From
Ddemerphq <demerphq@gmail.com>
Date
Mar 19, 2009, 21:48 UTC
Message-ID
<9b18b3110903191448x4cd62306idae9ce70630a389d@mail.gmail.com>
In-Reply-To
<20090319214317.GU23521@spearce.org>
2009/3/19 Shawn O. Pearce <spearce@spearce.org>:
Show 10 quoted lines
> demerphq <demerphq@gmail.com> wrote:
>> Outside of parsing the reflog directly, (which feels wrong and dirty
>> to me), how does one find out the times that a reflog entry was
>> created?
>>
>> The closest thing i could find was git log -g, but that shows the time
>
>  git reflog -g branch@{now}
>
> the @{now} suffix is the magic to make it show the time.

Ah cool. Its not documented but that at least would have sorted my immediate needs.

But for a logging tool it would be nice to get something like:

2009-03-19 21:46 > de9b652... HEAD@{0}: commit: pod/perlreftut.pod: keep example in tune with the times 2009-03-19 21:44 > 53102b2... HEAD@{1}: HEAD^: updating HEAD 2009-03-19 21:40 > a9a8f59... HEAD@{2}: commit: must stay contemporary

instead of:

$ git reflog -g HEAD@{now} de9b652... HEAD@{57 minutes ago}: commit: pod/perlreftut.pod: keep example in tune with the times 53102b2... HEAD@{61 minutes ago}: HEAD^: updating HEAD a9a8f59... HEAD@{61 minutes ago}: commit: must stay contemporary

But thanks a lot for the info. I take this is documented in a newer release than i currently have?

Yves
-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Johannes SchindelinNext: Jeff King
Message 17 of 21 in “Gnome chose Git”
  1. Teemu LikonenMar 19, 2009
  2. Sverre RabbelierMar 19, 2009
  3. Mike RalphsonMar 19, 2009
  4. Andreas EricssonMar 19, 2009
  5. Michael J GruberMar 19, 2009
  6. Pat NotzMar 19, 2009
  7. Shawn O. PearceMar 19, 2009
  8. Pat NotzMar 19, 2009
  9. Jeff KingMar 19, 2009
  10. demerphqMar 19, 2009
  11. Shawn O. PearceMar 19, 2009
  12. Shawn O. PearceMar 19, 2009
  13. demerphqMar 19, 2009
  14. Shawn O. PearceMar 19, 2009
  15. demerphqMar 19, 2009
  16. Johannes SchindelinMar 19, 2009
  17. demerphqMar 19, 2009
  18. Jeff KingMar 20, 2009
  19. make oneline reflog dates more consistent with multiline formatJeff King, Mar 20, 2009
  20. Michael J GruberMar 20, 2009
  21. Jeff KingMar 20, 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.