libgit2sharp
libgit2sharp copied to clipboard
Git + .NET = ❤
### Reproduction steps Clone a repo like so: ``` Repository.Clone(remoteDir, localDir, new CloneOptions() { Checkout = false, FetchOptions = new FetchOptions() { TagFetchMode = TagFetchMode.All } }); ``` ### Expected...
I have automated test failures due to `Repository.Init(string)` creating repos with `main` as the default branch name instead of `master`. How can I control the name of the default branch...
We have a tool that regularly runs on a repository to migrate changes between several different repositories. As a part of the process, we do a soft reset of a...
``` var patches = repo0.Diff.Compare(commit1?.Tree, commit2.Tree, Enumerable.Repeat(change.Path, 1), compareOptions: compareOptions); ``` Getting patches + applying them to file does not seems to work if there are unicode characters in file...
You are opening a _bug report_ against the LibGit2Sharp project: we use GitHub Issues for tracking bug reports and feature requests. If you have a question about an API or...
By default when you pick up commits using function like this: `repo.Commits.ToArray()` Commits are organized by date time - and if it happens to be the same for two commits,...
… in non updatred state and prevent rebase from continuing. Fixed that by updating submodules after rebase was initialized.
Trying to emulate the following, it outputs the SHA of the commit this particular file was changed last: `git rev-list -1 HEAD file.ext` [Here](https://github.com/libgit2/libgit2sharp/wiki/LibGit2Sharp-Hitchhiker%27s-Guide-to-Git) git-rev-list is listed under low-level plumbing...
I'm trying to fetch and pull everytime a request come to the application. So basically im using my own username and password for the same as of now. But when...
`Commands.Stage & repo.Commit` does not preserve LFS files at all, even if LFS is enabled. Also if you try to read from git history using API like: ``` Blob blob...