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

Re: [PATCH 1/9 v4] bisect: add "git bisect replace" subcommand

From
Paolo Bonzini <bonzini@gnu.org>
Date
Nov 13, 2008, 16:41 UTC
Message-ID
<491C58A3.2000609@gnu.org>
In-Reply-To
<200811121515.48277.chriscool@tuxfamily.org>
> Of course it also depends on how often people use "git bisect", but it seems 
> that there are people out there bisecting very frequently and that these 
> people care very much about bisectability of the tree.

What about "git bisect cherry-pick COMMIT" which would do a "cherry-pick -n" of COMMIT after every bisection unless COMMIT is in the ancestry of the current revision? So if you have to bisect between A and B, and you know that a bug present between A and B was fixed by C, you could do

  git bisect good A
  git bisect bad B
  git bisect cherry-pick C

This would subsume Junio's proposal: users could also set up a few special bisect/set-debug-to-1, bisect/remove-cflags-o2 and so on patches that you could use for purposes other than ensuring known bugs are fixed.

Finally, you could have a [bisect] configuration section with entries like "cherry-pick = BROKEN-SHA1 FIX-SHA1" and "git bisect" would apply FIX-SHA1 automatically if the bisect tip were in BROKEN-SHA1..FIX-SHA1.

Show 6 quoted lines
>> Things like paranoid update hook
>> needs to become very careful about refs/replace/ for security reasons,
>> but I think this would make the grafts much easier to use.
> 
> I agree that it would make grafts much easier to use (and would be very 
> security sensitive).

Not so much. People with public servers could create refs/replace in the server and give it 400 permissions, and/or git would refuse to create the refs/replace directory, forcing users to create it manually unless it is already in the server.

Paolo
Previous: Christian CouderNext: Christian Couder
Message 6 of 9 in “bisect: add "git bisect replace" subcommand”
  1. 1/9 bisect: add "git bisect replace" subcommandChristian Couder, Nov 11, 2008
  2. Junio C HamanoNov 11, 2008
  3. Christian CouderNov 12, 2008
  4. Junio C HamanoNov 13, 2008
  5. Christian CouderNov 13, 2008
  6. Paolo BonziniNov 13, 2008
  7. Christian CouderNov 14, 2008
  8. Paolo BonziniNov 14, 2008
  9. Christian CouderNov 15, 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.