tummychow / git-absorb

git commit --fixup, but automatic
https://crates.io/crates/git-absorb
BSD 3-Clause "New" or "Revised" License
3.38k stars 58 forks source link

Should git-absorb run git rebase --interactive automatically? #18

Closed nickolay closed 5 years ago

nickolay commented 5 years ago

It would be nice if git-absorb ran git rebase --interactive --autosquash ${BASE} if it was successful in creating all the fixup commits. This would save typing git rebase --interactive and copy-pasting the BASE sha.

Perhaps with a command line flag like git absorb --and-rebase, or maybe even git absorb --and-rebase-with-no-prompt for the adventurous types. What do you think?

tummychow commented 5 years ago

yep, this is in my TODOs. would definitely accept a PR for this

nickolay commented 5 years ago

Ah, sorry didn't see the TODO. Submitted the PR; I've elected not to add --and-rebase-with-no-prompt though.