Get list of tags of remote repository without cloning using libgit2

Using this git command I can get all of the available tags of a remote repository without having to clone it: git ls-remote –tags https://github.com/blender/blender.git I want to replicate this using libgit2. I can use git_tag_list (https://libgit2.org/libgit2/#HEAD/group/tag/git_tag_list) to get a list of tags, but it requires a git_repository object. I can use git_repository_open to create… Read More Get list of tags of remote repository without cloning using libgit2

Incomplete typedefs in libgit2

I am trying to integrate libgit2 (1.5.0) into my project. The compilation failes due to missing type definitions. The CMakeLists.txt of my project includes the include directory and the libgit2.a file: target_include_directories(myprj PUBLIC ../libgit2/src/libgit2-1.5.0/include) set(myprj "${CMAKE_SOURCE_DIR}/lib/libgit2.a") link_directories(myprj ${PROJECT_SOURCE_DIR}/lib) target_link_libraries(myprj PUBLIC ${libgit} crypto ssl) The following code is a simplified version of the code I am… Read More Incomplete typedefs in libgit2