luagit2

repository·master·Indexed 41 days ago

https://github.com/libgit2/luagit2

Lua bindings for the libgit2 library, enabling programmatic interaction with Git repositories. Supports libgit2 version >= 0.17 and can be installed via LuaRocks.

Tokens
333
Snippets
2
Records
4
Agent score
2%

What's inside luagit2

  1. Install luagit2 from GitHub source

    master

    If you need to install the latest development version directly from the GitHub repository, use the following LuaRocks command to install from the master branch rockspec:

    luarocks install https://raw.githubusercontent.com/libgit2/luagit2/refs/heads/master/rockspecs/lua-git2-scm-0.rockspec
  2. Regenerate Lua bindings

    master

    By default, CMake uses the pre-generated bindings included in the project. If you need to regenerate the bindings from the *.nobj.lua files, follow these steps:

    1. Install the LuaNativeObjects dependency.
    2. Set the CMake variable USE_PRE_GENERATED_BINDINGS to FALSE during your build configuration.

    Build Dependency:

    • LuaNativeObjects: The bindings generator used to convert *.nobj.lua files into a native Lua module.