Package: wnpp
Severity: wishlist

* Package name    : git-absorb
  Version         : 0.3.0
  Upstream Author : Stephen Jung <tummychow...@gmail.com>
* URL             : https://github.com/tummychow/git-absorb
* License         : BSD-3
  Programming Lang: Rust
  Description     : easier fixup for rebasing git history

You have a feature branch with a few commits. Your teammate reviewed
the branch and pointed out a few bugs. You have fixes for the bugs,
but you don't want to shove them all into an opaque commit that says
fixes, because you believe in atomic commits. Instead of manually
finding commit SHAs for git commit --fixup, or running a manual
interactive rebase, do this:

   git add $FILES_YOU_FIXED
   git absorb
   git rebase -i --autosquash master

git absorb will automatically identify which commits are safe to
modify, and which indexed changes belong to each of those commits. It
will then write fixup! commits for each of those changes. You can
check its output manually if you don't trust it, and then fold the
fixups into your feature branch with git's built-in autosquash
functionality.

----

I frequently do stuff like that:

 1. find the commit i want to modify with git log
 2. copy the commit id
 3. git commit -m'fixup! <commit id>'
 4. git rebase -i

This automates steps 1-3.

This being Rust, I don't feel competent packaging it myself, it would
be great if some Rust people would look at it.

Thanks!

Reply via email to