Hacker News new | ask | show | jobs
by masklinn 78 days ago
> Do you restrict yourself to 1 non-broken commit per PR?

No. To the extent that I can however I do restrict myself to only non-broken commits.

> If there were even 2 non-broken commits in the PR, then bisecting with the original history lands you on a diff half the size that bisecting with squashed history would, which is a significant win

It is not a significant win when the bisecting session keeps landing me in your broken commits that I have to waste time evaluating and skipping.

And splitting out fixups doesn’t save anything (let alone “half the size”), most commonly those fixups are just modifying content the previous commits were touching already, so you’re increasing the total diff size you have to evaluate.

> What are you "evaluating"?

Whether the commit is the one that caused the issue I’m bisecting for.

> If you want to ignore the individual commits and just look at the overall diff that's easy. If you want to ignore the individual messages and just look at the PR-time message that's easy too.

Neither of these is true. git bisect (run) lands me on a commit, it’s broken, now I need to look whether the commit is broken in a way that is relevant to what I’m seeking.

> Better to have the extra details and not need them than need them and not have them.

Garbage is “extra details” only in the hoarder sense.

1 comments

> It is not a significant win when the bisecting session keeps landing me in your broken commits that I have to waste time evaluating and skipping.

Skipping a commit that doesn't build is trivial (especially if you're automating your bisects).

> And splitting out fixups doesn’t save anything (let alone “half the size”), most commonly those fixups are just modifying content the previous commits were touching already, so you’re increasing the total diff size you have to evaluate.

If you feel the need to rebase to squash one-liner fixups into the commits they fix then that's a more subtle tradeoff and there are reasonable arguments. But squashing your whole PR for the sake of that is massive overkill, and the costs outweigh the benefits.

> Skipping a commit that doesn't build is trivial (especially if you're automating your bisects).

A broken commit usually compiles, if you don’t even compile before committing you should go back to school.

> If you feel the need to rebase to squash one-liner fixups into the commits they fix then that's a more subtle tradeoff and there are reasonable arguments. But squashing your whole PR for the sake of that

It would really have helped if you’d stated upfront that you can’t read.