dotnet add package LibGit2Sharp --version 0.27.2
NuGet\Install-Package LibGit2Sharp -Version 0.27.2
<PackageReference Include="LibGit2Sharp" Version="0.27.2" />
paket add LibGit2Sharp --version 0.27.2
#r "nuget: LibGit2Sharp, 0.27.2"
// Install LibGit2Sharp as a Cake Addin #addin nuget:?package=LibGit2Sharp&version=0.27.2 // Install LibGit2Sharp as a Cake Tool #tool nuget:?package=LibGit2Sharp&version=0.27.2
LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET
Troubleshooting and support
- Usage or programming related question? Post it on StackOverflow using the tag libgit2sharp
- Found a bug or missing a feature? Feed the issue tracker
- Announcements and related miscellanea through Twitter (@libgit2sharp)
Quick contributing guide
- Fork and clone locally
- Create a topic specific branch. Add some nice feature. Do not forget the tests 😉
- Send a Pull Request to spread the fun!
More thorough information is available in the wiki.
Optimizing unit testing
LibGit2Sharp strives to have a comprehensive and robust unit test suite to ensure the quality of the software and to assist new contributors and users, who can use the tests as examples to jump start development. There are over one thousand unit tests for LibGit2Sharp, and this number will only grow as functionality is added.
You can do a few things to optimize running unit tests on Windows:
- Set the
LibGit2TestPathenvironment variable to a path in your development environment.
- If the unit test framework cannot find the specified folder at runtime, it will fall back to the default location.
- Configure your anti-virus software to ignore the
- Install a RAM disk like IMDisk and set
LibGit2TestPathto use it.
imdisk.exe -a -s 512M -m X: -p "/fs:fat /q /v:ramdisk /y"to create a RAM disk. This command requires elevated privileges and can be placed into a scheduled task or run manually before you begin unit-testing.
- Code: The LibGit2Sharp contributors
- Logo: Jason "blackant" Long
The MIT license (Refer to the LICENSE.md file)
|Product||Versions Compatible and additional computed target framework versions.|
|.NET||net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed.|
|.NET Framework||net472 is compatible. net48 was computed. net481 was computed.|
- LibGit2Sharp.NativeBinaries (= 2.0.320)
- LibGit2Sharp.NativeBinaries (= 2.0.320)
NuGet packages (121)
Showing the top 5 NuGet packages that depend on LibGit2Sharp:
OctoNotes is a tool for generating release notes from Git repositories. In a perfect, trunk-based world, there would be a single, linear graph between versions of an application. In the real world, however, that's almost never the case. Many releases will have hotfixes; many applications will have LTS branches or maintenance releases; not to mention pull requests and other reasons for branches, both short-lived and long. OctoNotes takes a slightly different view of release notes. OctoNotes views the Git revision graph as the single source of truth. If a bug was fixed in a commit, that bug is only fixed in revisions containing that commit. If a feature was added between versions X and Y, it will appear in the Git revision graph as a commit somwehere between those two points. By leveraging Git tags, OctoNotes can pinpoint precisely where in a Git revision graph a change was introduced, and provide the release notes for just the commits between two points on that graph.
Core library for GitTools
GitHub repositories (61)
Showing the top 5 popular GitHub repositories that depend on LibGit2Sharp:
Open Source Web Application Framework for ASP.NET Core. Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
Stride Game Engine (formerly Xenko)
A source code analyzer built for surfacing features of interest and other characteristics to answer the question 'What's in the code?' quickly using static analysis with a json based rules engine. Ideal for scanning components before use or detecting feature level changes.
A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.