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

[RFC] Add bad-branch-first option for git-bisect

From
SHShuang He <shuang.he@intel.com>
Date
Jan 24, 2011, 02:03 UTC
Message-ID
<4D3CDDF9.6080405@intel.com>
Hi
      The default git-bisect algorithm will jump around the commit tree,
on the purpose of taking least steps to find the first culprit commit.
We may find it sometime would locate a old culprit commit that we're not
concerned about anymore.
      In most software development, there's one or two main branch which
is maintained for release, and a bunch of feature branches are created
for new feature development or bug fix.  For the reason that sometime
git-bisect will locate a old culprit commit would be:
          1. Quality of those branches may not match the main branch,
some functionality are broken at first and fixed later on the feature
branch. If git-bisect jump to there by chance, git-bisect will only find that old
culprit commit which only exists on that feature branch
          2. Some of those branches may not synchronized with main
branch in time.  Say feature1 is broken when feature2 branch is created, and
feature1 is fixed just a moment later after feature2 branch is created,
and when feature2's development is done, and developer want to merge
feature2 branch back to master branch, feature2 will be firstly
synchronized to master branch tip, then merge into master.  For the same
reason addressed in issue 1, this will also lead git-bisect into wrong
direction.
      In all, we think we do not care about branches that we're not
currently working, unless we're sure the regression is caused by that
branch.
      To address those issue, we propose to add a new config option:
          core.bisectbadbranchfirst::
              With this algorithm, git-bisect will always try to select
commits
              that on the same branch current bad commit sits. And will
fall back
              to default git-bisect algorithm when bad-branch-first
algorithm does
              not apply
          +
          This setting defaults to "false".
      The draft patch will be sent out in a later email, so it could be
reviewed inline.
      Any question or suggestion is welcome  :-)
Thanks
      --Shuang
Next: Shuang He
Message 1 of 14 in “[RFC] Add bad-branch-first option for git-bisect”
  1. Shuang HeJan 24, 2011
  2. add config option core.bisectbadbranchfirstShuang He, Jan 24, 2011
  3. Christian CouderJan 24, 2011
  4. Shuang HeJan 24, 2011
  5. Johannes SixtJan 24, 2011
  6. Shuang HeJan 24, 2011
  7. Junio C HamanoJan 24, 2011
  8. Shuang HeJan 25, 2011
  9. Christian CouderJan 25, 2011
  10. Shuang HeJan 26, 2011
  11. Christian CouderJan 26, 2011
  12. Shuang HeJan 26, 2011
  13. Avery PennarunJan 24, 2011
  14. Shuang HeJan 26, 2011

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.