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

Re: Blaming diffs

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 17, 2007, 05:41 UTC
Message-ID
<7vy7f53l3f.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200709170740.00917.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 12 quoted lines
> Le lundi 17 septembre 2007, Shawn O. Pearce a écrit :
>> Christian Couder <chriscool@tuxfamily.org> wrote:
>> > I don't know if that's what you are looking for but perhaps you could
>> > use "git bisect run". You just need to pass it a script that returns 1
>> > when it finds the changes and 0 otherwise. (See git-bisect man page.)
>>
>> That's very inefficient to search for something...
>
> Perhaps but you can search using whatever script or command you want/know. 
> You are not limited by those implemented in git.
>
> You can also make it more efficient with "git bisect {start,good,bad}".

I _think_ the inefficiency Shawn refers to is that "git bisect" wrapper inherently is based on checking out the revision. It is similar to "filter-branch --tree-filter" being much more inefficient than "filter-branch --index-filter" (the latter only works with index while the former does a full checkout).

The underlying "git rev-list --bisect" can be used to ask for sequence of commits to check if your check does not require a full checkout, but there is no wrapper like "git bisect" that uses that mode of operation.

Previous: Christian Couder
Message 7 of 7 in “Blaming diffs”
  1. Mike HommeySep 16, 2007
  2. Frank LichtenheldSep 16, 2007
  3. Mike HommeySep 16, 2007
  4. Christian CouderSep 17, 2007
  5. Shawn O. PearceSep 17, 2007
  6. Christian CouderSep 17, 2007
  7. Junio C HamanoSep 17, 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.