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

Re: [PATCH] Split sample update hook into post-receive hook

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 8, 2007, 10:02 UTC
Message-ID
<20070308100237.GF30289@spearce.org>
In-Reply-To
<81b0412b0703080157n413de6f6q35ae24e2620df91d@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> wrote:
Show 6 quoted lines
> The proprietary OS' will have the problem, though. And far sooner
> than 1300 refs (w2k has only 32767 bytes for command line).
> Besides, don't overestimate peoples readiness to be careful
> about reference names. I would expect reference names over
> 100 bytes in length to happen regularly (generated from file names
> appended with a timestamp, for example).
Cygwin's lifted that argument handling to be unlimited.  But yes,
the point holds, not all OSen will do well with long ref names
and a lot of refs (such as in an initial push of a very verbosely
named project).
 
> Maybe provide this hooks with simply formatted list on stdin? I.e.
> 
> <old-ref> <new-ref> <ref-name> LF

Yea, exactly what I was thinking. Easily read on stdin using 'read' in shell, or in Perl, or, in C, or in ... ;-)

-- 
Shawn.
Previous: Alex RiesenNext: Alex Riesen
Message 9 of 10 in “Split sample update hook into post-receive hook”
  1. Split sample update hook into post-receive hookShawn O. Pearce, Mar 8, 2007
  2. Alex RiesenMar 8, 2007
  3. Shawn O. PearceMar 8, 2007
  4. Junio C HamanoMar 8, 2007
  5. Shawn O. PearceMar 8, 2007
  6. Sergey VlasovMar 8, 2007
  7. Shawn O. PearceMar 10, 2007
  8. Alex RiesenMar 8, 2007
  9. Shawn O. PearceMar 8, 2007
  10. Alex RiesenMar 8, 2007

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.