Skip to content

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

AGPL-3.0-or-later

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •