I managed to pull out the data I need with this:
`git log --follow --format='%h' --name-only -- filename | vim -`
Information came in like this to Vim:
21acc7c
work/oldname
dea4a67
work/filename
103b0ee
work/subfolder/filename
387b384
work/filename
741bbc7
filename
etc...
I did :g/filename/norm kkJJ
to join them into this:
21acc7c work/oldname
dea4a67 work/filename
103b0ee work/subfolder/filename
387b384 work/filename
741bbc7 filename
This let me regex things into what I needed, though I had to jump through some hoops to keep things sorted, as git only stores down to the second, and rebases tend to create many commits at exactly the same time. The parenting keeps the order, but it meant that I had to deal with ordering in the looping, and not based on anything like git show
or git log
info.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…