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

Re: [PATCH] cvsimport move over to using git for each ref to read refs

From
Andy Whitcroft <apw@shadowen.org>
Date
Sep 21, 2006, 12:06 UTC
Message-ID
<4512804C.8060807@shadowen.org>
In-Reply-To
<7vwt7yij12.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 14 quoted lines
> Andy Whitcroft <apw@shadowen.org> writes:
> 
>>> About the quoting and parsing, language specific quoting mode is
>>> meant for git-for-each-ref to produce a string that can be eval'ed
>>> in the host language.  Think of the command as a tool to write a
>>> short program for you.
>> Thanks for the education.  Very simple, and very powerful.  I knew there
>> was a reason for it out there.  Will respin a V3 patch in a bit.
> 
> This probably showed that my initial description and example for
> the feature found in Documentation/git-for-each-ref was lacking.
> 
> I would appreciate a separate patch to enhance it if you are so
> inclined.

Actually the description in that manual page is pretty good. But I thought it was undocumented as the standard install does not install the manual pages and I was getting the ones from my stable install to fool me into thinking they were installed. New developer error, doh.

That said I've taken the liberty of updating and clarifying the language to make it very obvious from the outset that the language specific output formats are for generating eval'able snippets and added a simple example of it to complement your complex one.

Patch to follow.
-apw
Previous: Junio C HamanoNext: Junio C Hamano
Message 14 of 15 in “cvsimport move over to using git for each ref to read refs”
  1. cvsimport move over to using git for each ref to read refsAndy Whitcroft, Sep 20, 2006
  2. Jakub NarebskiSep 20, 2006
  3. Andy WhitcroftSep 20, 2006
  4. 1/2 for each ref add a raw timestamp field typeAndy Whitcroft, Sep 20, 2006
  5. 2/2 cvsimport move over to using git for each ref to read refs V2Andy Whitcroft, Sep 20, 2006
  6. Jakub NarebskiSep 20, 2006
  7. Junio C HamanoSep 20, 2006
  8. Andy WhitcroftSep 20, 2006
  9. cvsimport move over to using git for each ref to read refs V3Andy Whitcroft, Sep 20, 2006
  10. Junio C HamanoSep 20, 2006
  11. Andy WhitcroftSep 20, 2006
  12. Junio C HamanoSep 20, 2006
  13. Junio C HamanoSep 20, 2006
  14. Andy WhitcroftSep 21, 2006
  15. Junio C HamanoSep 22, 2006

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.