Skip to content

Conversation

@arturcic
Copy link
Member

@arturcic arturcic commented Jan 5, 2021

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

Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

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

You're awesome

This is precisely the direction I want the codebase to move in! Thank you so much for this massive improvement, @arturcic! ❤️

Copy link
Member

@asbjornu asbjornu left a comment

Choose a reason for hiding this comment

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

👏🏼 🎉 ❤️

@arturcic arturcic merged commit f083e30 into GitTools:master Jan 7, 2021
@arturcic arturcic deleted the feature/reduce-libgit2sharp branch January 7, 2021 14:22
@arturcic arturcic added this to the 5.6.2 milestone Jan 7, 2021
@github-actions
Copy link

github-actions bot commented Jan 8, 2021

🎉 This issue has been resolved in version 5.6.2 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants