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:59 UTC
Message-ID
<9b18b3110903191459q23af2bf9q998de27feb8dae2a@mail.gmail.com>
In-Reply-To
<20090319215331.GW23521@spearce.org>
2009/3/19 Shawn O. Pearce <spearce@spearce.org>:
Show 13 quoted lines
> demerphq <demerphq@gmail.com> wrote:
>> 2009/3/19 Shawn O. Pearce <spearce@spearce.org>:
>> > "Shawn O. Pearce" <spearce@spearce.org> wrote:
>> >
>> > git log -g branch@{now}
>>
>> Ah! Much nicer! Thanks.
>>
>> Is there by any chance any way to set the date format it uses to
>> something more suitable for machine processing?
>
> I don't think so.  If you want to machine process it, why not
> just read the reflog directly?  Its a really simple format.

Mostly my problem with that is that it violates the abstraction. If i update git and the reflog format changes my script breaks. I dont necessarily know where it will be located, etc. And while no doubt i can reverse engineer the format, well, who knows maybe Ill miss something important, I mean is it documented anywhere?

So i guess if the format were documented (and thus changing it would break compatibility and be noted in the changes file) then it would be fine to do so, but it seems to me making a way to access the reflog data in a structured way via a plumbing level command makes more sense. (At the very least this abstract the user of having to figure out where the log is stored).

Yves
-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Shawn O. PearceNext: Johannes Schindelin
Message 15 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.