Questions tagged [libgit2sharp]

.NET and Mono open source bindings for libgit2, a native Git library

LibGit2Sharp is an thin .NET/Mono layer wrapping the libgit2 linkable C Git library.

It provides a very opiniated API which should be very easy to use and discover.

Online resources

503 questions
0
votes
1 answer

Why Am I getting an error "NoMemory" by Libgit2 when commiting files?

I am using Visual Studio Online and Git using Visual Studio 2013 as a client. I am trying to add files to my repo and when I commit them, I get the following error in the Team Explorer Window: An error occurred. Detailed message: An error was…
ATL_DEV
  • 9,256
  • 11
  • 60
  • 102
0
votes
1 answer

A sha value represent to the status for git repository

There is a sha value represent to the status for git repository in current status? The sha value to be updated each time the Object Database updated and References changed if git has this sha value. In other words, the sha value represent to the…
Aimeast
  • 1,609
  • 14
  • 29
0
votes
1 answer

is libgit2 automatically packing repositories

I did not see a garbage collection command in LibGit2 so I was wondering if it is currently automatically packing files in a local repository.
0
votes
2 answers

Set HEAD for a bare repository

I don't know how to set the HEAD reference for a bare repository. Throw the BareRepositoryException with message Additional information: An error was raised by libgit2. Category = Repository (BareRepo). when I trying…
Aimeast
  • 1,609
  • 14
  • 29
0
votes
1 answer

Can't Open Remote repository on network web server

I have a repository on a network web server: http://rene:9095/git/TestGit.git When I try to open it from C# code with libgit2sharp it throws the following exception: **Excepcion:** Path 'http://rene:9095/git/TestGit.git' doesn't point at a valid…
0
votes
1 answer

Encryption in or used by libgit2 and libgit2sharp? Export Control Classification Numbers?

Do libgit2 and libgit2sharp have Export Control Classification Numbers (ECCN)? If so, where can I find them? (I didn't find them on github for either project.) If not, does either contain encryption? And, does either use encryption, including…
0
votes
1 answer

Returning all git logs since a specific date with LibGit2Sharp

I'm using Lib2GitSharp to join the Git logs with information from some other systems and I would like to be able to retrieve all git logs since a certain date (or between dates). I found documentation on querying the log here but it does not appear…
Ryan Taylor
  • 8,740
  • 15
  • 65
  • 98
0
votes
1 answer

Is there a way to commit part of modified files (all files are staged) by using libgit2sharp?

Is there a way to commit part of modified files (all files are staged) by using libgit2sharp? There are no Commit method in Repository that takes path parameter.
Jifan Wang
  • 67
  • 5
0
votes
1 answer

move the reference to working directory using libgit2sharp

I want to change the reference to the working directory to a different place using LibGit2Sharp in a Visual C++ project. it seems to me that Repository::Init() with RepositoryOptions can set the working directory to a non-default place. What I am…
0
votes
2 answers

How to push to a local remote?

I'm having a hard time pushing my commits to a remote repository with libgit2sharp. Using the git bash it works fine. The remote is addressed via UNC like "//computer_name/remote.git". So it's a folder on a machine in the local network which has an…
Luca
  • 25
  • 5
0
votes
1 answer

LibGit2Sharp fails to find git2.dll

I have built a tiny wpf app that manages a website I am working on. The key feature of this app is that it allows me to checkout different branches of a theme repository. This works perfectly in visual studio, but when I publish, install and run the…
Shattuck
  • 2,744
  • 4
  • 21
  • 26
0
votes
1 answer

Why do libgit2 methods using kernel32.dll's GetProcAddress always return 0?

I have the need to manually handle the loading / unloading of the actual git2.dll, instead of using [DllImport("git2")] in C#. I seem to have issues with creating an IntPtr for reference to the address of methods stored in libgit2. Here're the good…
Xaero Degreaz
  • 1,045
  • 11
  • 18
0
votes
1 answer

Needing a little help performing operations on remote repository

I've been tinkering around, and reading through what little Wiki information that I could find, and looked through tests that I thought may be relevant, however I'm having problems coming up with a working solution for a few things. Mostly, I'm…
Xaero Degreaz
  • 1,045
  • 11
  • 18
-1
votes
1 answer

How to push a local branch to a remote repository using LibGit2Sharp

Trying to create a new branch and push it to my remote repo using this code: var localBranch = repository.CreateBranch(environment); Commands.Checkout(repository, localBranch); var remote =…
amitc
  • 69
  • 3
-1
votes
1 answer

How to send push options with LibGit2Sharp?

How to use LibGit2Sharp to send parameters to server similar to the command git --push-option?
1 2 3
33
34