git-disjoint-0.2.19 is not a library.
Git Disjoint
git disjoint groups commits by issue onto unique branches.
Installing
Cargo
cargo install git-disjoint
Manual
Download a release compatible with your OS and architecture from the Releases page, extract the binary, and put it somewhere in your $PATH.
Assumptions
git disjoint may add value to your workflow if you
- use a work tracker (currently supports Jira)
- use GitHub and Pull Requests
Goals
git disjoint automates referencing issues in your development work (Jira) so you can focus on development.
Workflow
-
Add all your commits to one branch.
Starting from your repository's default branch, this could look like:
git checkout -b nowor, if you are using git-branchless:
git checkout --detach -
In each commit message, include a reference to the relevant ticket.
For example:
Ticket: COOL-123or
Closes Ticket: COOL-123 -
When you're ready to:
- turn the set of commits addressing each ticket into its own feature branch,
- push that branch, and
- create a draft PR,
run
git disjoint.
Caveats
- There's currently no code to handle the case where
git disjointtries to operate on a branch that already exists. This can happen if you invokegit disjointtwice on the same branch. See #32.