Skip to content

Zig FFI bindings for libgit2 - Inspired by personal-sysadmin git operations

License

Notifications You must be signed in to change notification settings

hyperpolymath/zig-libgit2-ffi

Repository files navigation

zig-libgit2-ffi

Zig FFI bindings for libgit2 - direct git repository access without subprocess calls.

Requirements

Fedora
sudo dnf install libgit2-devel

Building

zig build

Usage

const git = @import("zig-libgit2-ffi");

var repo = try git.Repository.open("/path/to/repo");
defer repo.close();

if (try repo.isClean()) {
    std.debug.print("Working directory is clean\n", .{});
}

License

PMPL-1.0-or-later