6 ms·
Reason I like git is because I use like 2% of its features. I don't fall for propaganda that I need to use bisect and co. 99% of git commands I call are aliased
by 0x457 1y ago
Reason I like git is because I use like 2% of its features. I don't fall for propaganda that I need to use bisect and co. 99% of git commands I call are aliased to 3 characters, so it's dense terminology doesn't bother me.
- Valodim 1y agoThere were (are?) people who say the same thing about svn
- 0x457 1y agoSure, but in this case, git being distributed is what sold it for me. I've switched off svn as soon as I've learned of git.
- globular-toast 1y agoI relish the day I get to use bisect. It's like, finally I get to use all this version data I've been collecting. I don't understand why anyone would say you have to use it. It does a very specific thing, namely finding the source of a regression between two commits. If you need it you'll know.
- tcoff91 1y agoIt’s really nice to use the —-first-parent flag with bisect.
- globular-toast 1y agoYeah this is good if you, for some reason, rebase then merge without fast forwarding. I never understood doing this. If I'm going to be ignoring those commits when bisecting then they are useless commits just using up disk space IMO. Does it work well with a classic merge workflow? I haven't worked that way (without rebasing) for a long time.
- 1718627440 1y agoFor me a merge is about grouping commits, when you have just a list of commits, the list can be very long. That's also useful for bisecting, as you can first find the feature that is buggy and then find the commit that introduced it.
- globular-toast 1y agoThe whole point of bisect is to make it quicker to find a point in a potentially long list of commits. Finding the feature first then bisecting within the branch is only going to make it slower, and requires you to manually restart the bisect. I use the commit message to add ticket numbers to things to group commits.
- 1718627440 1y agoThe commits surrounding them (logically) are probably also relevant, which you will find easier when you have grouped commits by features. I prefer to have everything in a single source of truth (git), so everything is in commits. Your tickets are my merge commits.
- ykonstant 1y agoBisect is a wonderful feature. Git is full of tedium and frustration, bisect is not part of that.
- falconertc 1y agoBisect is a very cool feature that I used once over 5 years ago. The collection of git tools that I use often is very small. I've found that the more experienced I got with git, the less I found myself in scenarios where I needed git's more complex tools.
- theLiminator 1y agoHmm, bisect is definitely not one of those.
- 1718627440 1y agoYes not using bisect, seams like you do all the work to record information, but then never use that information to save work?
- 0x457 1y agoMay I use how often and why you use bisect? I don't remember the last time I needed bisect. Well, I also don't work in linux kernel sized repos, so there is that.
- 1718627440 1y ago> May I use Was that 'may I ask'? Not that often, but not seldom. Its useful if you have a bug, that isn't obvious where it comes from, but easily testable. Then you just write a test and let git figure out where it comes from. The test doesn't need to be automatable. I also used it for firmware that needs to be flashed and the bug effected in an LED blinking incorrectly. I still saved a lot of time.
- 1y ago
- anticodon 1y agoI used bisect once in my life but it was extremely helpful. Without it I'd spend weeks trying to find regression. With bisect I found and fixed it in under 1 hour. It's a command that is needed rarely but there's no replacement for it in some situations.
- pclowes 1y agoI am confused by this, isn't Bisect just some git ergonomics with respect to flagging a checked out commit as a success failure and then checking out the next midway commit depending of if it was a success/failure to enable classic binary search? It might be slightly more tedious but couldn't you just do the same thing manually and it would add just a couple minutes to the search and you would still save weeks? I like the ergonomics but only use it once every couple years.
- anticodon 1y agoAgree, probably could be done in any other VCS as well, including CVS. But only possible if you actually use VCS and use it properly.