git2-rs icon indicating copy to clipboard operation
git2-rs copied to clipboard

libgit2 bindings for Rust

Results 143 git2-rs issues
Sort by recently updated
recently updated
newest added

As of 0454efbaa0447a1d02eb11459a7db5e1c27d98e0, `cargo test` fails on macOS. System details: ```` $ uname -a Darwin waleedkhan-mbp 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64 $...

It should be something like the command `git log --follow FILENAME`. `revwalk` might work but would lead to tons of computing. Do we have another ways? thank you!

Hi, I see `Diff` is only achievable through some `diff_*` functions on the `Repository` structure. However, my goal is to compare two different source code repository which is possible through...

currently `git2::Reference` doesn't implement clone. I want it. There's method to do this in c: [`git_reference_dup`][git_reference_dup] [git_reference_dup]: https://libgit2.org/libgit2/#HEAD/group/reference/git_reference_dup

I use this code to clone repo, The memory has increased from 1m to >20m and more。And will not be released ``` fn clone(){ let mut callbacks = RemoteCallbacks::new(); callbacks.credentials(|_url,...

Hello all, I'm in the process of trying to use git2 to create a worktree pointing to the merge-base of two references. I figured out how to get the merge-base,...

The revwalk documentation is unclear about how to find the last commit changing a file (a pretty basic usage). Example: ```rust fn recipe_modified(path: PathBuf) -> Result { let repo =...

Hi there, I'm building an application that shall use OAuth authentication to the git repo this app shall pull/push from/to. Is this supported in this crate to establish this kind...

It's an useful feature in git (gui) clients to be able to select individual lines to stage and commit, not just hunks or files. I saw that [nodegit implemented it](https://github.com/nodegit/nodegit/pull/678)...

### Summary After initializing Git repository using a different initial branch name than `master`, the function `git2::Repository::is_empty()` will return `false`, even though there are no commits in any branch. ###...