Skip to content

rebase: Add wrapper for git_rebase_inmemory_index() #900

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2022

Conversation

pks-t
Copy link
Member

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

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 <[email protected]>
(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 <[email protected]>
(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 <[email protected]>
(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 <[email protected]>
(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 <[email protected]>
(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 <[email protected]>
(cherry picked from commit e7d1b2b)

Co-authored-by: Patrick Steinhardt <[email protected]>
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 <[email protected]>
(cherry picked from commit e7d1b2b)

Co-authored-by: Patrick Steinhardt <[email protected]>
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 <[email protected]>
(cherry picked from commit e7d1b2b)

Co-authored-by: Patrick Steinhardt <[email protected]>
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 <[email protected]>
(cherry picked from commit e7d1b2b)

Co-authored-by: Patrick Steinhardt <[email protected]>
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 <[email protected]>
(cherry picked from commit e7d1b2b)

Co-authored-by: Patrick Steinhardt <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants