Skip to content

rebase: Add wrapper for git_rebase_inmemory_index() - #900

Merged
lhchavez merged 2 commits into
libgit2:mainfrom
pks-t:pks-rebase-inmemory-index
Feb 24, 2022
Merged

rebase: Add wrapper for git_rebase_inmemory_index()#900
lhchavez merged 2 commits into
libgit2:mainfrom
pks-t:pks-rebase-inmemory-index

Conversation

@pks-t

@pks-t pks-t commented Feb 24, 2022

Copy link
Copy Markdown
Member

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

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.
@pks-t
pks-t requested a review from lhchavez February 24, 2022 11:55
@lhchavez
lhchavez merged commit e7d1b2b into libgit2:main Feb 24, 2022
github-actions Bot pushed a commit that referenced this pull request Feb 24, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)
github-actions Bot pushed a commit that referenced this pull request Feb 24, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)
github-actions Bot pushed a commit that referenced this pull request Feb 24, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)
github-actions Bot pushed a commit that referenced this pull request Feb 24, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)
github-actions Bot pushed a commit that referenced this pull request Feb 24, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)
lhchavez pushed a commit that referenced this pull request Feb 25, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)

Co-authored-by: Patrick Steinhardt <ps@pks.im>
lhchavez pushed a commit that referenced this pull request Feb 25, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)

Co-authored-by: Patrick Steinhardt <ps@pks.im>
lhchavez pushed a commit that referenced this pull request Feb 25, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)

Co-authored-by: Patrick Steinhardt <ps@pks.im>
lhchavez pushed a commit that referenced this pull request Feb 25, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)

Co-authored-by: Patrick Steinhardt <ps@pks.im>
lhchavez pushed a commit that referenced this pull request Feb 25, 2022
* rebase: Fix missing initialization of the repo pointer

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

* rebase: Add wrapper for `git_rebase_inmemory_index()`

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 e7d1b2b)

Co-authored-by: Patrick Steinhardt <ps@pks.im>
zhangshuyun pushed a commit to zhangshuyun/gitaly that referenced this pull request Mar 9, 2022
Upgrade the Git2go dependency to v33.0.9. This upgrade most importantly
contains the changes of [1], which allows us to access the index of
in-memory rebases. This functionality is required to return the list of
conflicts to callers.

[1]: libgit2/git2go#900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants