645 questions
2 votes
0 answers
52 views
How to use an SSH key with a passphrase for credentials in LibGit2Sharp v0.31.0?
I am using the LibGit2Sharp v0.31.0 release and trying to perform Git operations (like clone or fetch) over the SSH protocol. According to the release information, SSH is now supported through libgit2'...
-1 votes
1 answer
84 views
git2-rs build fails on iOS [closed]
I'm trying to build a mobile git client with Rust. So far. the Android and macOS build successfully. But iOS failed miserably: Undefined symbols for architecture arm64: "_crc32", ...
0 votes
0 answers
42 views
How to link libgit2 as a submodule using cmake
I am working on simple minecraft launcher https://github.com/skorakora/ZielonaAlkaidaLauncher I would like to add libgit2 to it as git submodule. I have tried "git submodule add ``https://github....
0 votes
0 answers
53 views
How to add conflicts into an index using pygit2
I want to create a pygit2.Index instance out of thin air and populate it with conflicts. I see that in libgit2 there is a git_index_conflict_add function available, but it does not seem to be mapped ...
1 vote
0 answers
61 views
Is there a way to download thin packs from a remote git repository without having complete previous objects locally?
I want to download a thin pack of a repository, that will take in a "haveUpto" sort of parameter and a "needUpto" parameter, and stream a pack to me consisting of objects only ...
0 votes
0 answers
151 views
How to bypass LibGit2Sharp CertificateCheck (or make SSL work)?
I'm trying to clone a repository using a .NET console app. The git server is behind a kubernetes ingress. When trying to clone it using cmdline, it is working fine. However, when I try to clone the ...
1 vote
0 answers
21 views
Are libgit2 indexes reentrant?
Consider using int git_apply_to_tree(git_index **out, git_repository *repo, git_tree *preimage, git_diff *diff, const git_apply_options *options); How is the index stored? Is this safe to use on the ...
0 votes
1 answer
53 views
How can I tell a file was renamed using pygit2
I am running a diff between 2 consecutive commits and the only change between them is a rename of one file without any change in content involved. If I run a show on the parent commit, I get this from ...
-1 votes
1 answer
219 views
How to truncate git commit history to reduce object count?
I have a Git server service implemented based on go-git, and the repository has multiple copies on different machines. When a machine goes down and is replaced, I perform a full clone of the ...
1 vote
0 answers
63 views
How to use the remote repository’s reference advertisement list in git2
In Rust's git2 library, there is a list function that returns a remote repositories reference advertisement list. The resulting RemoteHead structs can return a name, oid, and loid, but how are these ...
0 votes
1 answer
94 views
Skip rebase step on conflict with Libgit2sharp
I am performing a rebase operation with libgit2sharp and it works all nice, but I and would like to skip a rebase step when a conflict occurs (if the commit has a specific message) rebaseResult = ...
0 votes
0 answers
63 views
How to replicate 'git rm --cached' in libgit2
I've been trying to replicate git rm --cached in libgit2. In Git, this command will remove the file in changes to be committed without removing the file from local disk. I tried to use the ...
0 votes
1 answer
120 views
create "master" first branch without commit using libgit2
On shell I can do something below using bash git mkdir -p /tmp/REPO/ROOT && pushd /tmp/REPO/ROOT && git init && git checkout -b anyName As summary above init a local git repo ...
1 vote
1 answer
269 views
Trying to pull a git repository using libgit2's example lg2_checkout
I am trying to pull a repository using libgit2 in C. The library provides an example (checkout.c) and its compiles without error. When I launch the client without any parameter the print_usage informs ...
2 votes
1 answer
101 views
libgit2: clear remote refspec(s)
I'm currently facing the following challenge: I'm in the process of migrating a C++ tool from an older version of libgit2 to the current version (v1.8.0). In the older libgit2 version, there was a ...