libgit2 Questions

4

Solved

On macOS 13.2, in zsh, ls returns the following error message: dyld[15164]: Library not loaded: /usr/local/opt/libgit2/lib/libgit2.1.6.dylib Referenced from: <14346135-E664-31AF-A80B-05A5335ED5...
Hamo asked 13/2, 2024 at 11:56

3

Solved

I just downloaded the nugget package for libgit2sharp. I am finding it difficult to do even basic operations. I have an existing git repo (both remote and local). I just need to commit new change...
Mcdavid asked 1/8, 2014 at 16:38

4

Solved

Here's the code I'm using to fetch: public static void GitFetch() { var creds = new UsernamePasswordCredentials() {Username = "user", Password = "pass"}; var fetchOpts = new FetchOptions {Cred...
Factoring asked 1/10, 2014 at 15:33

2

Solved

How may I find all commits in a repository that have a specific parent? For example, if I have a commit A, I would like to find all other commits that share the parent with A. What would be the mo...
Katekatee asked 10/5, 2012 at 18:16

4

Solved

I am experiencing an odd problem every time I try the set-up of pygit2. Below is what I run and the error generated. $ python3 setup.py install running install running build running build_py runni...
Churinga asked 26/6, 2012 at 22:38

3

Solved

I am using the Rust git2 crate to clone Git repositories like this use git2::Repository; fn main() { let repo = Repository::clone( "https://github.com/rossmacarthur/dotfiles", "dotfiles" ).ex...
Lithotrity asked 13/3, 2019 at 11:38

3

Solved

I am trying to use libgit2 to read the name of the current branch. Do I have to do some sort of resolve? I tried using git_branch_lookup to look up the git_reference for HEAD, but it results i...
Audra asked 26/8, 2012 at 18:41

1

I try to understand how to implement a custom object database in libgit2. As the main entry point I already checked out the example repository called libgit2-backends which implements examples for ...
Radar asked 6/1, 2021 at 23:58

4

Solved

Is there some convention for the order of a commit's parents? Because one of the commit's parents should be to be to previous commit on the current branch that is being merged into and the rest ar...
Formation asked 18/8, 2013 at 16:30

1

I'm trying to do branch switching using libgit2. Repo already cloned and references to existing remote branches created. If I put GIT_CHECKOUT_FORCE to checkout_strategy, it works as expected - cr...
Devy asked 4/7, 2019 at 9:48

3

Solved

Recently I've been using git stash many times and I've been thinking that it is really slow, even on a new repository with a single file. I've read this question about git stash slowness and this o...
Uvulitis asked 24/5, 2017 at 13:30

2

Solved

Using git show, I can fetch the contents of a particular file from a particular commit, without changing the state of my local clone: $ git show <file> $ git show <commit>:<file&gt...
Wait asked 12/11, 2018 at 14:38

1

Solved

The git2 crate doesn't have direct way to perform "git pull" action. I've seen this question and tried to do it the same way (playground): use std::fs; use std::fs::File; use std::io::{stderr, st...
University asked 8/11, 2019 at 14:55

1

I'm using git2-rs to implement some standard git functionality in a Rust application. I've been reading up on git internals and understand that at a high level "git pull" is a "git f...
Array asked 8/1, 2019 at 22:44

2

Solved

I'd like to access in-premise TFS server GIT repositories using LibGit2Sharp. So far I'm only playing around with this library, and I can't get it to work as I'd expect it would. My first problem ...
Commingle asked 5/4, 2018 at 11:53

3

In C++ using libgit2, I'd like to create a new local repository where its master branch is based on specific-branch from another local repository, maintaining its history so I can later synch betwe...
Dipterous asked 22/5, 2018 at 0:41

1

Solved

I am trying to authenticate against a git server with libgit2 using SSH keys. So far, this is working for URLs like ssh://[email protected]:1234/dirs/repo.git, where my application accepts the...
Kuth asked 26/7, 2018 at 15:0

3

Solved

Sometimes I try to read and write to a Git repository at the same time. But afterwards i get the following error message when i try to commit files: An error was raised by libgit2. Category = In...
Itch asked 22/4, 2014 at 20:19

2

Solved

I would like to make a commit on a branch (master for example). I am making a repository clone using pygit2 (pygit2.clone_repository) Then I change an existing file in the repository. Afterwards...
Boondocks asked 6/4, 2015 at 10:41

1

Solved

When cloning or fetching from visualstudio.com I get a sideband message that "you're using an older version of Git". This happens with libgit2 commit f1323d9 that is from January 10. Is there any...
Liquid asked 17/1, 2018 at 8:40

3

Solved

I need to programmatically get the last author of a specific line in the Git history with C#. I tried using libgit2sharp : var repo = new LibGit2Sharp.Repository(gitRepositoryPath); string relative...
Guttering asked 30/3, 2016 at 13:23

3

I´m kind of stuck with an SSH private key issue and LibGit2Sharp-Ssh. I have a .Net/C# application that uses LibGit2Sharp-Ssh to clone a Git repository. I need to use SSH (https with user/passwor...
Soteriology asked 23/11, 2017 at 21:1

2

Solved

I'm trying to find the significant differences in C/C++ source code in which only source code changes. I know you can use the git diff -G<regex> but it seems very limiting in the kind of rege...
Quasar asked 16/2, 2015 at 0:44

2

Solved

It's possible to obtain the number of commits behind/ahead using git rev-list command. I am trying to achieve the same thing using libgit2sharp library but the library is not fully documented so I ...
Orchestrate asked 3/10, 2017 at 11:37

1

Solved

I'm trying to implement a simple checkout operation between 2 branches. The code executes without errors. git_libgit2_init(); git_object *treeish = NULL; git_checkout_options opts; opts.checkout_s...
Sukey asked 15/10, 2017 at 17:35

© 2022 - 2025 — McMap. All rights reserved.