2 ms·
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 pr
by saagarjha 7y ago
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.
- ridiculous_fish 7y agoI 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.")