libgit2
« Back to VersTracker
Description:
C library of Git core methods that is re-entrant and linkable
Type: Formula  |  Latest Version: 1.9.2@0  |  Tracked Since: Dec 6, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: git version-control library c vcs
Install: brew install libgit2
About:
libgit2 is a portable, pure C implementation of the Git core methods, providing a re-entrant and linkable API for applications. It allows developers to read from and write to Git repositories, manipulate commits, trees, and blobs, and perform diffs without shelling out to the Git command-line interface. This makes it ideal for integrating Git functionality directly into native applications, IDEs, and build systems.
Key Features:
  • Pure C implementation with no external Git dependency
  • Re-entrant and thread-safe API for concurrent operations
  • Cross-platform support (Linux, macOS, Windows, BSD)
  • Bindings available for multiple languages (Python, Ruby, Rust, Go, etc.)
  • Low-level access to Git object model and internal structures
Use Cases:
  • Embedding Git version control into IDEs and code editors
  • Building custom Git tools, hooks, or automation scripts
  • Server-side Git operations in hosting platforms like GitHub
  • Analyzing repository history and metadata programmatically
Alternatives:
  • git – Standard command-line tool; libgit2 provides a programmatic API instead of shelling out to CLI
  • jgit – Java-based implementation; libgit2 is native C for performance and embedding in C/C++ apps
Version History
Detected Version Rev Change Commit
Dec 6, 2025 2:05pm 0 VERSION_BUMP 65e8c525
Nov 26, 2024 9:37am 0 VERSION_BUMP 060602e8
Oct 31, 2024 12:54am 0 VERSION_BUMP ab2dfee5
Oct 27, 2024 1:28am 0 VERSION_BUMP b52ea64f
Oct 26, 2024 7:10pm 0 VERSION_BUMP c86aa4c0