Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Git + .NET/Mono = ❤
C# Other

Merge pull request #1040 from libgit2/ntk/issue_1040

All unit tests fail because of Mono.Unix.UnixPath in BuildPath
latest commit 645d89e7f9
@nulltoken nulltoken authored
Failed to load latest commit information.
.nuget add support for running tests inside Visual Studio
CI Pin Linux CI builds to Mono 3.12.0
Lib Update libgit2 to 9bbc8f3
LibGit2Sharp.Tests Refactor unwrapping of temp repository on unix
LibGit2Sharp Fix a typo in a comment.
libgit2 @ 9bbc8f3 Update libgit2 to 9bbc8f3
nuget.package fix libgit2/libgit2sharp#876 adds source indexing using SourceLink.exe
.editorconfig .editorconfig added to repository
.gitattributes Remove BOM and cleanup .gitattributes
.gitignore Leverage NuGet restore for development dependencies
.gitmodules Fix libgit2 submodule definition to use Https
.mailmap Fix .mailmap
.travis.yml Teach Travis to also monitor master
CHANGES.md Merge branch 'master' into vNext
LICENSE.md Copyrights: update for 2015
LibGit2Sharp.sln Leverage NuGet restore for development dependencies
LibGit2Sharp.sln.DotSettings Fix Resharper private member prefix setting
LibGit2Sharp.v2.ncrunchsolution Sandbox every test
README.md Correct ".NET" usage
UpdateLibgit2ToSha.ps1 Teach UpdateLibgit2ToSha.ps1 to copy native binaries on windows only
acknowledgments.md Add tarring capabilities
appveyor.yml fix libgit2/libgit2sharp#876 adds source indexing using SourceLink.exe
build.libgit2sharp.cmd Leverage NuGet restore for development dependencies
build.libgit2sharp.sh Make *nix builds fail at the first error
square-logo.png Add libgit2 project logo

README.md

LibGit2Sharp

LibGit2Sharp brings all the might and speed of libgit2, a native Git implementation, to the managed world of .NET and Mono.

Prerequisites

  • Windows: .NET 4.0+
  • Linux/Mac OS X: Mono 3.6+

Online resources

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)

Current project build status

The CI builds are generously hosted and run on the Travis and AppVeyor infrastructures.

Windows (x86/amd64) Linux/Mac OS X
master master win master nix
vNext vNext win vNext nix

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 available in the wiki.

Optimizing unit testing

LibGit2Sharp strives to have comprehensive and robust unit test suite to insure the quality of the software and to assist new contributors and users who can use the tests as sample to jump start development. There are over one-thousand unit-tests for LibGit2Sharp, this number will only grow as functionality is added.

You can do a few things to optimize running unit-tests on Windows:

  1. Set the LibGit2TestPath environment 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.
  2. Configure your anti-virus software to ignore the LibGit2TestPath path.
  3. Install a RAM disk like IMDisk and set LibGit2TestPath to use it.
    • Use imdisk.exe -a -s 256M -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.

Authors

License

The MIT license (Refer to the LICENSE.md file)

Something went wrong with that request. Please try again.