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

Bisect limited to Merge Commits

From
HPHagen Paul Pfeifer <hagen@jauu.net>
Date
Apr 27, 2016, 20:45 UTC
Message-ID
<20160427204551.GB4613@virgo.localdomain>
Hey,

are there any plans to add an option to skip all non-merge commits via bisecting?

git bisect start --merges-only

Imagine a "rebase feature branch" style of development. All features are developed on separate features branch which are rebased on master and immediately merged into the upstream master. Now think about lazy programmers who miss to check the build process at each commit - leading to many unbuildable commits. The only guaranteed buildable commit is often the merge commit.

Bisecting only merge commits will reduce the amount of skip commands (think about many unbuildable commits) and reduce the number of tests.

Any comments on this idea? What about extending bisect.c:do_find_bisection()
	hgn
Next: Junio C Hamano
Message 1 of 6 in “Bisect limited to Merge Commits”
  1. Hagen Paul PfeiferApr 27, 2016
  2. Junio C HamanoApr 27, 2016
  3. Johannes SixtApr 27, 2016
  4. Junio C HamanoApr 27, 2016
  5. Hagen Paul PfeiferApr 28, 2016
  6. Jacob KellerApr 28, 2016

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.