3 ms·
Somewhat (or possibly greatly) related: Are tools like git-absorb safe/reliable? Git-absorb is a port of hg absorb: "Essentially, when your working directory
by eevilspock 5y ago
Somewhat (or possibly greatly) related:
Are tools like git-absorb safe/reliable? Git-absorb is a port of hg absorb:
"Essentially, when your working directory has uncommitted changes on top of draft changesets, you can run `hg absorb` and the uncommitted modifications are automagically folded ("absorbed") into the appropriate draft ancestor changesets. This is essentially doing `hg histedit` + "roll" actions without having to make a commit or manually make history modification rules."
I haven't (yet) wrapped my head around the algorithm. I get that an algorithm can "recollate" a series of commits in a way that yields no commit conflicts, but that's not the same as rearranging and combining commits into a sequence of semantically coherent atomic commits.
---
https://github.com/tummychow/git-absorb https://github.com/tummychow/git-absorb
https://github.com/torbiak/git-autofixup https://github.com/torbiak/git-autofixup
- andrewshadura 5y agoI use git-absorb a lot, it's been my daily driver since I discovered it. It is very conservative in what it does: if it doesn't know what to do, it does nothing. And in any case, each of the changes it introduces is a separate commit, so you can reorder or amend them however you like. Also, what a shameless plug I am, have a look at git-crecord to interactively commit files line by line.