libgit2sharp
libgit2sharp copied to clipboard
Git + .NET = ❤
We're using LibGit2Sharp in our internal nuget package, which targets `netstandard2.0` and `net461`. LibGit2Sharp 0.27.0+ no longer targets `netstandard`, which prevents us from upgrading it. We need to update native...
See pull request I'm about to create.
### Reproduction steps Compile & run ```.cs using LibGit2Sharp; Repository.Init(args[0]); var repo = new Repository(args[0]); TreeDefinition current = new(); current.Add("sample/stays/to/a/file", repo.ObjectDatabase.CreateBlob("stays".ToStream()), Mode.NonExecutableFile); current.Add("sample/removed/to/a/file", repo.ObjectDatabase.CreateBlob("removed".ToStream()), Mode.NonExecutableFile); current.Remove("sample/removed"); var tree = repo.ObjectDatabase.CreateTree(current);...
I'm trying to get all commits that a particular file is associated with. This is the code that I'm running: ``` IEnumerable fileHistory = repo.Commits.QueryBy(fileRelativePath); foreach (LogEntry version in fileHistory){...
I want to avoid executing commands and updating files manually. Is there an existing API within libgit2 that replace this command => git config --global --add safe.directory '*'
### Reproduction steps Set core.longpaths = true in global or user Use either Repository.Init or Repository.Clone on a path which is longer than 260 ### Expected behavior Init and Clone...
My problem is described perfectly [here](https://stackoverflow.com/questions/71126033/libgit2sharp-how-to-push-a-local-repo-commit-to-azure-devops-remote-repo-using), but I don't think the solution is the correct one, since that would use the credentials stored on the computer as far as I'm...
There is number of 44 opened pull requests. Most of them untouched by maintainers. Last release was in December of 2019. Is anyone here who own this repo and maintain...
### Reproduction steps Created a new .NET MAUI app and launched it with MacCatalyst. When making a call to `Repository.IsValid(projectPath);` it will throw the following. Looking at the output folder,...