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

Re: [RFC/PATCH] merge-base: teach "git merge-base" to accept more than 2 arguments

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 26, 2008, 04:37 UTC
Message-ID
<7vzlo5mfbf.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080726055920.3a2fc8e7.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 6 quoted lines
> Before this patch "git merge-base" accepted only 2 arguments, so
> only merge bases between 2 references could be computed.
>
> The purpose of this patch is to make "git merge-base" accept more
> than 2 arguments so that the merge bases between the first given
> reference and all the other references can be computed.

I think this is a logical conclusion of merge_bases_many(). You need tests and docs, though.

Previous: Johannes Schindelin
Message 3 of 3 in “merge-base: teach "git merge-base" to accept more than 2 arguments”
  1. merge-base: teach "git merge-base" to accept more than 2 argumentsChristian Couder, Jul 26, 2008
  2. Johannes SchindelinJul 26, 2008
  3. Junio C HamanoJul 26, 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.