this post was submitted on 28 Jul 2026
38 points (93.2% liked)
Programming
27885 readers
427 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Does bisect not treat a merge commit as a singular commit in the history of the target branch?
From memory, I believe it does. But that means the bisection would give the result that the merge commit is responsible for the bug. Which isn't wrong, but most workflows do not just blindly revert a whole merge, but would have to follow-up to surgically find and fix the bug in the merged-in branch.
So that would be yet another invocation of Git bisect. The hazard is believing that bisect is an fully automated bug finder, when it would just stop at the first merge commit if the bug came in from elsewhere.
The other hazard that I didn't mention is a presumption that every commit -- merge or not -- is individually buildable and testable. For good workflows, this is the case. For some... more casual workflows where broken code is pushed and then fixes thereafter, bisect will not be able to hone down to a singular commit.