Re:Git Internals, Techniques, and Rewriting History
by saagarjha on Monday October 21, 2019 @03:42AM
(#21310086)
What kind of functionality are you trying to add? For something simply, shelling out to git is probably OK; if you're writing something more complicated many projects rely on libgit2. For really weird stuff you can probably just directly go and edit objects inside of .git, as long as you're careful.
[ Parent
| on HN ]
Re:Git Internals, Techniques, and Rewriting History
by ridiculous_fish on Monday October 21, 2019 @11:59AM
(#21313768)
I would like to extend git such that you can check out a commit, amend it, rebase all descendants onto the amended commit, and update any branches accordingly. Effectively like `rebase -i` but not modal.
This requires keeping some state around. libgit2 is a nice pointer, I'll check that out.
(hg users will recognize this as "restacking.")