libgit2sharp icon indicating copy to clipboard operation
libgit2sharp copied to clipboard

Git + .NET = ❤

Results 255 libgit2sharp issues
Sort by recently updated
recently updated
newest added

`libgit2` exposes a method to perform diff's between arbitrary buffers, [`git_diff_buffers`](https://libgit2.org/docs/reference/main/diff/git_diff_buffers.html). It would be nice to expose this so that consumers can generate git-compatible diffs from arbitrary buffers. I have...

I set per-commit global git hook. But when i commit file no triggers happens. Is there a way to solve this problem?

Sets editorconfig to use LF as the line terminator as to be in line with project guidelines

Generally where parameter names are mentioned, it's a best practice to use the `nameof()` expression. This patch adds it where stringified names were being used.

### Reproduction steps - a repo with multiple overlapping fetch specs: ``` [remote "origin"] url = ../multifetchspec_testrepo.git/ fetch = +refs/pull/28/head:refs/remotes/origin/PR-28 fetch = +refs/heads/master:refs/remotes/origin/master fetch = +refs/heads/*:refs/remotes/origin/* ``` - repo doesn't...

Similar to FetchOptions used for PullOptions, CloneOptions or PushOptions, Repository.ListRemoteReferences needs to somehow expose a CustomHeaders option. Without it, a request to an on-premise Azure DevOps Server (in my case...

### Reproduction steps I have a git repository with remote origin. repository = new Repository(repositoryRootPath); var remote = repository.Network.Remotes["origin"]; IEnumerable refSpecs = remote.FetchRefSpecs.Select(x => x.Specification).ToList(); Commands.Fetch(repository, remote.Name, refSpecs, new FetchOptions(),...

C:\working> git init --separate-git-dir='C:\repository' creates C:\repository directory that contains directly git files (HEAD, config, index, refs) Repository.Init("C:\working". "C:\repository") creates C:\repository directory that contains .git directory How to make Repository.Init() do...

The function "Repository.ListRemoteReferences" needs a new parameter "CertificateCheckHandler CertificateCheck" to let the user validate the server certificate, because now the function fails with the error "certificate revocation status could not...