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
-1
votes
1 answer

How to Properly Unstage File With libgit2sharp

I'm trying my best to figure out how to unstage a file with libgit2sharp. My current approach is to to remove the file from the index, but that seems to delete the file instead of unstaging it. public bool Unstage(params string[] filePaths) …
The Pax Bisonica
  • 2,154
  • 2
  • 26
  • 45
-1
votes
2 answers

VSTS - Add Work Item with PullRequest

We have an automated tool in c# and using "libgit2sharp" API, it will do Clone Repository, Stage file, Commit and Push the changes, Pull Request creation is done by REST API. Now have to add a Work Item with the Pull Request, need suggestions to…
vasmay
  • 1,419
  • 3
  • 13
  • 18
-1
votes
1 answer

How to clone and push changes to remote repository using libgit2sharp

Any idea how to clone a remote repository into local drive, commit changes to it and push the changes to remote repository using libgit2sharp?
user1731828
-1
votes
1 answer

How to get a named branch?

I am using LibGit2Sharp and would like to get the latest commit of a specific branch, but, due to lacking documentation or my own fault I cannot find out how to achieve this. Therefore, what's the easiest way to get the current commit of a specific…
Wilbert
  • 7,251
  • 6
  • 51
  • 91
-1
votes
1 answer

Commit tree contains full working tree

I tried to retrieve last commit where the specific file was submitted (kind of "git log foo.cc"). Get all the commits and go through them. In the commit tree looking for the file. The problem is that all the commits contain the file I'm interested…
myurchenko
  • 53
  • 5
-2
votes
1 answer

Read a line from a file on a specific commit in C#

I am trying to capture a specific line in a file given a FilePath, LineNumber, and the CommitID (Hash) for that file repo I have stored locally. I have it working except for I have not been able to access a specify Commit yet. I am currently looking…
-2
votes
2 answers

Does LibGit2Sharp ensures that the data being cloned from the Repository is the same as what we receive on our end?

I am working on an application that uses LibGit2Sharp to clone the data from Git Repositories. I want to know that whether LibGit2Sharp does any data integrity checks like SHA-1 after the clone is finished(successful or not) to ensure that no data…
-2
votes
1 answer

GitCandy cannot create repository when it is deployed

I successfully compiled and tested GitCandy from Visual Studio and IIS Express. However when I deploy it to a non Express IIS, the repository creation fails. I added some extra error logging to the file operations on the GitCandy source level. What…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
1 2 3
33
34