package git_split
Install
Dune Dependency
Authors
Maintainers
Sources
md5=c2ae0a22df057de6dbef09886c8efd2f
sha512=fc753a4b06e8bc3c8be373a5b8108801532371a664b813d8373da3f4270f74f066e9c46437c0ac4c7b2a1c3ad0fff0309a8e51a273e980f7dbe190dfe8bcef78
Description
When one commit becomes too large and needs to be split up, the general git workflow that involves resetting the commit and then using interactive staging to generate multiple commits from it can be quite cumbersome. In addition to that, the git interactive staging tool's UX can be quite bad, therefore this tools aims to provide this functionality in a nicer way.
Published: 30 Jul 2024
README
git split
TUI-based commit splitting tool for git.
Why?
For those of us who like keeping their commit history clean, sometimes it may happen that a single commit ends up containing more functionality than we'd like. For these cases the main solution is to do a soft reset on the commit and start using git add -p
to pick what you want in your commit, leaving the rest for another commit. That tool operates mostly on a hunk-by-hunk basis and when you'd like to go for line-by-line adding, the UX gets pretty bad, which led me to build this.
NB!
The goal of this project was to learn OCaml, so if you are an OCaml expert reading this and despairing at the code quality, feel free to open a discussion with improvement suggestions.