package git-split

  1. Overview
  2. Docs
A tool to split a git commit into multiple

Install

Dune Dependency

Authors

Maintainers

Sources

0.0.2.tar.gz
md5=6901def32e6f9cde20a0886f502a760b
sha512=b09103cf66f7bb21d9c1371043ae9b14682618e37660ebdb0752045f9bec7be63e0016958ce0988c54281cbbbc35c19bd6028e9eb71c0d85fca1f11935198099

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: 23 Aug 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.

Dependencies (6)

  1. ppx_deriving
  2. feather >= "0.3.0"
  3. notty
  4. re
  5. dune >= "3.15"
  6. ocaml >= "4.14"

Dev Dependencies (2)

  1. odoc with-doc
  2. alcotest with-test

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.