-
Notifications
You must be signed in to change notification settings - Fork 664
Reduce libgit2sharp dependency in the GitVersionCore project #2509
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
Reduce libgit2sharp dependency in the GitVersionCore project #2509
Conversation
Removed fields that depend directly on Libgit2sharp Using proxy classes, and methods
asbjornu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is precisely the direction I want the codebase to move in! Thank you so much for this massive improvement, @arturcic! ❤️
asbjornu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏼 🎉 ❤️
|
🎉 This issue has been resolved in version 5.6.2 🎉 Your GitReleaseManager bot 📦🚀 |

This PR reduces the dependecy on the LibGit2Sharp in the GitVersionCore project, by replacing the direct call to Libgit2Sharp.Repository and Libgit2Sharp.IRepository, as well as other LibGit2Sharp objects by replacing with proxy classes (git objects classes) like
GitRepository, Branch, Commit and so on.
The only classes that depend on Libgit2Sharp are placed in the LibGit2 folder.
That means when we will have a full managed implementation of the IGitRepository interface and the git objects we can remove the dependency on LibGit2Sharp in the Core, still for unit testing we might keep it