libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 314 forks source link

rebase: Add wrapper for `git_rebase_inmemory_index()` (#900) #904

Closed github-actions[bot] closed 2 years ago

github-actions[bot] commented 2 years ago

While the Rebase structure has a pointer to the repository the rebase is creatde in, this pointer isn't ever initialized. Fix this.

Add a new wrapper for git_rebase_inmemory_index(), which can be used to retrieve the index for an in-memory rebase.

Co-authored-by: Patrick Steinhardt psteinhardt@gitlab.com (cherry picked from commit e7d1b2b69fbe476c75a00cf8dcda284337facb50)