3 ms·
When I'm developing I inevitably fix one thing after another as I pass through the code. What I'd like is a tool to take such PRs and automatically split it up
by esafak 2y ago
When I'm developing I inevitably fix one thing after another as I pass through the code. What I'd like is a tool to take such PRs and automatically split it up into loosely coupled, cohesive chunks.
- CraftThatBlock 2y agoWith jj, I often do this and use jj split -i, which opens an interactive editor (similar to git's interactive add/rebase) which I can select parts of the change to be split into a separate change/commit. This enables me to take a large piece of work, split it into individual chunks, and open PRs for each change.
- tome 2y agoI have a tool called git-split for splitting commits: https://github.com/tomjaguarpaw/git-split/ https://github.com/tomjaguarpaw/git-split/ I'm not sure you'd call it "automatic" though. Were you thinking of using an LLM to split the commits with some semantic awareness? It doesn't do that!
- esafak 2y agoIt should be possible to do that with LLM integration. Consider it a feature request :)