Re: git history feedback
On Thu, Jun 4, 2026, at 10:17, Rasmus Villemoes wrote:
Show 12 quoted lines
>[snip]
>
> So today I had occasion to put it to real use, and then I found two
> things I'd like to be able to do with it:
>
> When a commit needs to be split into three or more commits, it is a
> little cumbersome to do iteratively, since the new commit to split
> obviously has a new sha, so one first has to figure out what that new id
> is and then do another "git history split". For higher values of "three"
> that becomes rather tedious. So it would be nice if there was an
> iterative mode, which after splitting off the first commit would
> automatically start again with the new child commit.
For commit subject `anchor` I would do something like this.
1. `git history split :/anchor`
2. Split out the first commit with a new message; keep the `anchor`
subject of the original
3. Repeat (1)
>[snip]