Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrap_libgit2

Wrap_libgit2 is an Eiffel binding of libgit2 C library using WrapC tool.

libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language which supports C bindings.

Requirements

Status

The binding is work in progress. Tested on Linux and Windows 64 bits.

Download and Install

Guide to linking libgit2 on various platforms

Linux

On Linux to install version 1.0.0 you will need to do the following.

$ mkdir build
$ cd build
$ cmake ..
$ sudo cmake --build . --target install

Rebuild the ldconfig cache using

sudo ldconfig 

Optionally you can use vckpg, a C++ Library Manager for Windows, Linux, and MacOS.

	./vcpkg install libgit2:x64-linux

Windows

Using vcpkg (https://github.com/microsoft/vcpkg) tool, you can install libgit2 library

	vcpkg install libgit2:x64-windows

Then copy the git2.lib to %LIBRARY_PATH%wrap_library/library/C/lib Be sure to have the git2.dll on the PATH.

Examples

How to compile the C library glue code.

Before to use the examples you will need to compile the C glue code, go to

library/generated_wrapper/c/src

and run

finish_freezing --library

It will copy the C lib eif_libgit2.a to $ECF_CONFIG_PATH/C/spec/$(ISE_PLATFORM)/lib/ or eif_libgit2.lib to $ECF_CONFIG_PATH/C/spec/$ISE_C_COMPILER/$ISE_PLATFORM/lib

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.