Skip to content

Replace Pygit2 by Dulwich #3221

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 8 commits into from
Mar 30, 2024
Merged

Replace Pygit2 by Dulwich #3221

merged 8 commits into from
Mar 30, 2024

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Mar 30, 2024

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

PyGit2 relies on libgit, which is a C library. Dulwich is (almost) all Python.

Issue Number: fixes #2864

What is the new behavior?

Dulwich is used to handle merge conflicts.

This simplifies everything, since we can now always assume git support is available.

Other information

Dulwich can't create merge conflicts by itself, so we use the git cli for that bit.

NB. Does merge conflict resolution work from Flatpak? We only have access to the actual file, and not to the .git folder. Maybe we should change the permissions back to --filesystem=home?

@github-actions github-actions bot added the python Pull requests that update Python code label Mar 30, 2024
@amolenaar amolenaar requested a review from danyeaw March 30, 2024 10:08
@danyeaw danyeaw added chore Maintenance related PR and removed python Pull requests that update Python code labels Mar 30, 2024
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

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

This is a nice improvement, thanks @amolenaar!

@danyeaw danyeaw merged commit 1ae411b into main Mar 30, 2024
@danyeaw danyeaw deleted the dulwich branch March 30, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate Dulwich as an alternative to pygit2
2 participants