feat: CLI backend in addition to libgit2#191
Draft
rtimush wants to merge 6 commits into
Draft
Conversation
7c20d47 to
c62f3d0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
f37037b to
e6bd3c5
Compare
c1fc87b to
87767b5
Compare
50d5c12 to
3f38574
Compare
ee1849e to
5d848b5
Compare
@coralogix/protofetch
@coralogix/protofetch-darwin-arm64
@coralogix/protofetch-darwin-x64
@coralogix/protofetch-linux-arm64
@coralogix/protofetch-linux-x64
@coralogix/protofetch-win32-x64
commit: |
Introduce a GitBackend trait that abstracts all low-level git operations. Add error types for backend operations and a backend-agnostic GitOid type.
Implement GitBackend trait using the git2 (libgit2) crate. Moves existing git2-based functionality into the new backend abstraction.
Update ProtofetchGitCache to use the GitBackend trait instead of directly using git2. This removes direct git2 operations from the cache layer. Refactor repository to use GitBackend abstraction Update ProtoGitRepository to use the GitBackend trait instead of directly using git2. This completes the migration to backend abstraction.
Add git_backend field to ProtofetchConfig and support loading from config file or PROTOFETCH_GIT_BACKEND environment variable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#40.
The two main benefits are: