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

Re: [PATCH] Make git-revert & git-cherry-pick a builtin

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 1, 2007, 21:51 UTC
Message-ID
<20070301215123.GB9254@spearce.org>
In-Reply-To
<Pine.LNX.4.63.0703012230290.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 12 quoted lines
> > > +static int merge_recursive(const char *base_sha1,
> > > +		const char *head_sha1, const char *head_name,
> > > +		const char *next_sha1, const char *next_name)
> > > +{
> > > + ...
> > > +}
> > 
> > Somehow I would have expected you to call merge-recursive not spawn, but 
> > this is saner ;-).
> 
> I briefly considered this, until I realized that merge-recursive is no 
> builtin yet!

Heh, I expected the same thing as Junio when I first read through the patch. But then I realized that doing so right now might not be a great idea; normally if merge-recursive aborts we say "fix up and commit" and do a few things still in cherry-pick/revert before giving the shell back to the user.

But a quick pass through merge-recursive.c says this may actually
be possible...
 
> Speaking of this issue: Would it be conceivable to make the standalones 
> into builtins? (This adds a dependency on libcurl to core Git programs, 
> but I could live with that... It would make a builtin fetch easier, too.)

Please don't make libcurl required. I don't build with it on Solaris, because its not there, and I don't need it there.

-- 
Shawn.
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 5 in “Make git-revert & git-cherry-pick a builtin”
  1. Make git-revert & git-cherry-pick a builtinJohannes Schindelin, Mar 1, 2007
  2. Junio C HamanoMar 1, 2007
  3. Johannes SchindelinMar 1, 2007
  4. Shawn O. PearceMar 1, 2007
  5. Johannes SchindelinMar 1, 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.