logoalt Hacker News

noidentyesterday at 8:47 PM5 repliesview on HN

If only there were some way to logically break up large pull requests into smaller pieces... Some way of creating a checkpoint with a diff including your changes, and some kind of message explaining the context behind the change... some way to "commit" a change to the record of the repository...


Replies

landr0idyesterday at 8:54 PM

Part of the idea behind stacked PRs is to keep your commits focused and with isolated changes that are meaningful.

A stacked PR allows you to construct a sequence of PRs in a way that allows you to iterate on and merge the isolated commits, but blocks merging items higher in the stack until the foundational changes are merged.

show 1 reply
jaredsohnyesterday at 8:53 PM

There are tools that use LLMs to do this.

I've done this manually by building a big feature branch and asking an LLM to extract out functionality for a portion of it.

For the former, it would seem to split based on frontend/backend, etc. rather than what semantically makes the most sense and for the latter it would include changes I don't want and forget some I do want. But I haven't tried this a lot.

bombcaryesterday at 8:54 PM

So much effort has been spent beating git until it's just CVS with bells on.

show 1 reply
Hamukoyesterday at 8:50 PM

Yeah, I feel like just being able to review a PR commit-by-commit with a nice interface would just suffice.

show 2 replies
pertymcpertyesterday at 9:00 PM

What might that be?