Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


With 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.


I have a tool called git-split for splitting commits: 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!


It should be possible to do that with LLM integration. Consider it a feature request :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: