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
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 26, 2008, 04:25 UTC
Message-ID
<alpine.DEB.1.00.0807260624210.26810@eeepc-johanness>
In-Reply-To
<20080726055920.3a2fc8e7.chriscool@tuxfamily.org>
Hi,
On Sat, 26 Jul 2008, Christian Couder wrote:
> 	I suspect this patch may be usefull to simplify my
> 	"bisect: add merge bases check" series and perhaps
> 	also generally usefull.
s/usefull/useful/
Show 15 quoted lines
> diff --git a/builtin-merge-base.c b/builtin-merge-base.c
> index 1cb2925..9c41849 100644
> --- a/builtin-merge-base.c
> +++ b/builtin-merge-base.c
> @@ -2,9 +2,14 @@
>  #include "cache.h"
>  #include "commit.h"
>  
> -static int show_merge_base(struct commit *rev1, struct commit *rev2, int show_all)
> +static struct commit *rev1, **prev2;
> +static size_t prev2_nr, prev2_alloc;
> +
> +
> +static int show_merge_base(int show_all)
>  {
Changing the arguments to be static variables?
NACK!

Ciao, Dscho

Previous: Christian CouderNext: Junio C Hamano
Message 2 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.