libgit2 breaking changes
libgit2 1.0.0 is its newest release with breaking changes, 3 of them. The first: Removed BIN_INSTALL_DIR. Every breaking API change we have recorded in libgit2 on vcpkg: 86 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.9.7. Source repository
- From 0.99.0 to 1.0.0: 3 breaking changes in 1 version.
- From 0.27.5 to 1.0.0: 85 breaking changes in 6 versions.
libgit2 1.0.0 breaking changes
- Removed
BIN_INSTALL_DIR
The custom CMake option BIN_INSTALL_DIR is replaced by the standard CMake variable CMAKE_INSTALL_BINDIR. Build scripts that set the old option must switch to the new variable. github.com - Removed
INCLUDE_INSTALL_DIR
The custom CMake option INCLUDE_INSTALL_DIR is replaced by the standard CMake variable CMAKE_INSTALL_INCLUDEDIR. Build scripts that set the old option must switch to the new variable. github.com - Removed
LIB_INSTALL_DIR
The custom CMake option LIB_INSTALL_DIR is replaced by the standard CMake variable CMAKE_INSTALL_LIBDIR. Build scripts that set the old option must switch to the new variable. github.com
libgit2 0.99.0 breaking changes
- Removed
git_cred.username
Use git_cred_get_username to read the username. github.com - Removed
git_headlist_cb
The declaration was removed. github.com - Removed
git_time_monotonic
The unused API is removed. github.com - Removed
inttypes.h
The erroneously exported header was removed. github.com - Renamed
git_attr_t
The git_attr_t type is now git_attr_value_t; the former name is deprecated. github.com - Renamed
GIT_ATTR_TRUE
GIT_ATTR_TRUE is now GIT_ATTR_IS_TRUE; the former name is deprecated. github.com - Renamed
git_blob_create_frombuffer
The former names are deprecated. github.com - Renamed
git_blob_create_fromdisk
The former name is deprecated. github.com - Renamed
git_blob_create_fromstream
The former name is deprecated. github.com - Renamed
git_blob_create_fromstream_commit
The former name is deprecated. github.com
And 52 more in this version. Sign up to see every change
libgit2 0.28.5 breaking changes
- Behavior changed
Code that deletes the HEAD reference will now get an error instead of succeeding. github.com - Behavior changed
In sandboxed environments libgit2 skips reading configuration from the user's home directory. github.com - Behavior changed
When fetching from an anonymous remote with credentials in the URL, the literal URL with credentials is no longer written to FETCH_HEAD. github.com
libgit2 0.28.0 breaking changes
- Renamed
GIT_IDXENTRY_
GIT_IDXENTRY_ values and macros now use the GIT_INDEX_ENTRY_ prefix; the old names remain for compatibility. github.com - Renamed
GIT_INDEXCAP
GIT_INDEXCAP values now use the GIT_INDEX_CAPABILITY_ prefix; the old names remain for compatibility. github.com - Renamed
giterr_
The giterr_ functions now use the git_error_ prefix and GITERR_ constants use GIT_ERROR_; old names remain for compatibility. github.com - Behavior changed
HTTP proxy support is now built in and libcurl is no longer a dependency, so proxy behavior may differ. github.com - Behavior changed
Submodule configuration is ignored when the submodule name attempts path traversal. github.com - Behavior changed
Trailing spaces in .gitignore files are no longer treated as part of the pattern, so matching changes. github.com - Behavior changed
Checked-out files may get different line endings to match newer git versions. github.com - Behavior changed
Reference logs are now written when core.logallrefupdates is set to always. github.com - Behavior changed
Windows builds now always use cdecl; the option to build a stdcall library has been removed. github.com - Behavior changed
Adding or checking out a symlink named .gitmodules is no longer allowed. github.com
And 4 more in this version. Sign up to see every change
libgit2 0.27.10 breaking changes
- Behavior changed
Paths starting with .git: are now rejected on every platform, so code writing such entries will fail. github.com - Default changed
NTFS path protections are now enabled by default on all systems, which may reject paths that were previously accepted. github.com
libgit2 0.27.9 breaking changes
- Behavior changed
The ProgramData configuration file is now read only when it is owned by the administrator or the current user. github.com
Older versions
1 older version.
Show 1 older version
libgit2 0.27.5 breaking changes
- Behavior changed
Submodule URLs and paths that begin with a dash are now ignored to prevent option injection during recursive clones. Code relying on those submodules must change their URLs or paths. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.