Remix.run Logo
what 5 hours ago

Why would you have more than one commit for a PR? That sounds like crazy town.

chrisweekly 4 hours ago | parent [-]

IMHO equating commits and PRs puts undue pressure on the scope and quality of a given commit, adding potential for unnecessary stress and eliminating the benefits of an additional buffer / layer for aggregation of changes. A PR representing a sizable feature or refactor might naturally contain a dozen commits, each dedicated to a logical area or a requisite subset of the whole. Assuming on principle a goal of keeping main in a known-good state, such intermediate and incomplete changes (fine in an unstable feature branch) would wreak havoc.

It's equivalent to asking, "Why would you have more than one story in an epic (or task in a story)?".

what 4 hours ago | parent [-]

If your PR has more than one commit, each one should be deployable in isolation. Which means you can split your giant PR into smaller ones that can be reviewed independently.

tclancy 3 hours ago | parent [-]

I’ve worked under both systems, but isn’t the purity you’re describing a bit of a dodge in that you wind up force pushing amended commits when you find you forgot something?

steveklabnik 3 hours ago | parent | next [-]

Why is that a dodge? that's the expected way to work in this system, and it should be able to show you the interdiff between those amends.

adastra22 an hour ago | parent | prev [-]

Not once they hit master, no. You push bug fix commits.