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

Re: [WIP PATCH 1/3] git bisect old/new

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 4, 2015, 08:20 UTC
Message-ID
<vpqiob3yjeh.fsf@anie.imag.fr>
In-Reply-To
<1433404753-12039-1-git-send-email-antoine.delaite@ensimag.grenoble-inp.fr>
Antoine Delaite <antoine.delaite@ensimag.grenoble-inp.fr> writes:
Show 11 quoted lines
> @@ -732,18 +736,25 @@ static void handle_bad_merge_base(void)
>  	if (is_expected_rev(current_bad_oid)) {
>  		char *bad_hex = oid_to_hex(current_bad_oid);
>  		char *good_hex = join_sha1_array_hex(&good_revs, ' ');
> -
> -		fprintf(stderr, "The merge base %s is bad.\n"
> -			"This means the bug has been fixed "
> -			"between %s and [%s].\n",
> -			bad_hex, bad_hex, good_hex);
> -
> +		if (!strcmp(bisect_bad,"bad")) {
space after comma.
Show 6 quoted lines
> @@ -954,6 +994,9 @@ int bisect_next_all(const char *prefix, int no_checkout)
>  	       "(roughly %d step%s)\n", nr, (nr == 1 ? "" : "s"),
>  	       steps, (steps == 1 ? "" : "s"));
>  
> +	free((char*)bisect_bad);
> +	free((char*)bisect_good);

Already noted last time I think: these must not be freed as they are pointing to static strings.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Antoine DelaiteNext: Christian Couder
Message 4 of 6 in “git bisect old/new”
  1. 1/3 git bisect old/newAntoine Delaite, Jun 4, 2015
  2. 2/3 bisect: use name_(bad|good) instead of bisect_(bad|good)Antoine Delaite, Jun 4, 2015
  3. 3/3 bisect: fix indentationAntoine Delaite, Jun 4, 2015
  4. Matthieu MoyJun 4, 2015
  5. Christian CouderJun 4, 2015
  6. Junio C HamanoJun 4, 2015

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.