Hacker News new | ask | show | jobs
by 317070 4160 days ago
I can't seem to find the rebase code? I've always wondered how that part works. Great work otherwise! I've already taken a look at the three way merger code.
1 comments

In a nutshell, it checks out the target and cherry-picks what had been HEAD onto it, beginning at the merge-base.

https://github.com/libgit2/libgit2/blob/master/src/rebase.c may be helpful and (hopefully) readable.