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

Re: [RFC] git rev-contains [Was: merge -s ffonly]

From
Andreas Ericsson <ae@op5.se>
Date
Oct 8, 2008, 06:18 UTC
Message-ID
<48EC50C8.4000603@op5.se>
In-Reply-To
<20081007185815.GA10744@strlen.de>
Uwe Kleine-König wrote:
Show 12 quoted lines
> Hello,
> 
>> +	if test -n "$(git rev-list $1..HEAD)"
> I already wrote similar tests and I wonder if this couldn't be done in a
> new builtin command more effectively.  Something like
> 
> 	git rev-contains HEAD "$1"
> 
> .  I expect it to be faster and maybe it prevents a command line
> overflow?!  (I remember something like 32000 chars max in a command, but
> I could not trigger that with bash.)
> 

On Linux (well, on my system anyways), it's 128K for arguments and environment combined.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Uwe Kleine-KönigNext: Deskin Miller
Message 3 of 5 in “merge -s ffonly”
  1. Shawn O. PearceOct 6, 2008
  2. [RFC] git rev-contains [Was: merge -s ffonly]Uwe Kleine-König, Oct 7, 2008
  3. Andreas EricssonOct 8, 2008
  4. Deskin MillerOct 8, 2008
  5. Uwe Kleine-KönigOct 8, 2008

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.