Skip to content

index: map git_index_conflict_add #1382

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eantoranz
Copy link
Contributor

map libgit2's git_index_conflict_add() as Index.add_conflict().

map libgit2's git_index_conflict_add() as Index.add_conflict().
@eantoranz eantoranz force-pushed the git_index_conflict_add branch from 0e1538c to 7e00418 Compare June 27, 2025 20:03
@eantoranz
Copy link
Contributor Author

Interesting that it failed for macos (and that the feedback already tips that it might be a problem in libgit2).

err = C.git_index_conflict_add(
self._index, centry_ancestor, centry_ours, centry_theirs
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there something to do with the centries after using them in git_index_conflict_add()?

@jdavid
Copy link
Member

jdavid commented Jun 28, 2025

Reading cffi's documentation, centries will be garbage collected, so there is nothing to do with it.

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.

2 participants