---
title: "libgit2 1.0.0 Breaking Changes on vcpkg | Since.dev"
description: "What each libgit2 release removed, renamed or changed: 86 breaking changes in 7 versions on vcpkg, each with its source."
canonical_url: https://since.dev/packages/vcpkg/libgit2
last_updated: 2026-12-04
---

# 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

Latest version `1.9.7`. [Source repository](https://github.com/libgit2/libgit2)

- From [0.99.0](#v-0-99-0) to [1.0.0](#v-1-0-0): 3 breaking changes in 1 version.
- From [0.27.5](#v-0-27-5) to [1.0.0](#v-1-0-0): 85 breaking changes in 6 versions.

## libgit2 1.0.0 breaking changes

libgit2 1.0.0: 3 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](https://github.com/libgit2/libgit2/releases/tag/v1.0.0)
- **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](https://github.com/libgit2/libgit2/releases/tag/v1.0.0)
- **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](https://github.com/libgit2/libgit2/releases/tag/v1.0.0)

## libgit2 0.99.0 breaking changes

libgit2 0.99.0: 62 breaking changes.

- **Removed** `git_cred.username`  

Use git_cred_get_username to read the username. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Removed** `git_headlist_cb`  

The declaration was removed. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Removed** `git_time_monotonic`  

The unused API is removed. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Removed** `inttypes.h`  

The erroneously exported header was removed. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Renamed** `git_attr_t`  

The git_attr_t type is now git_attr_value_t; the former name is deprecated. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Renamed** `GIT_ATTR_TRUE`  

GIT_ATTR_TRUE is now GIT_ATTR_IS_TRUE; the former name is deprecated. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Renamed** `git_blob_create_frombuffer`  

The former names are deprecated. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Renamed** `git_blob_create_fromdisk`  

The former name is deprecated. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Renamed** `git_blob_create_fromstream`  

The former name is deprecated. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)
- **Renamed** `git_blob_create_fromstream_commit`  

The former name is deprecated. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.99.0)

And 52 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## libgit2 0.28.5 breaking changes

libgit2 0.28.5: 3 breaking changes.

- **Behavior changed**  

Code that deletes the HEAD reference will now get an error instead of succeeding. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.5)
- **Behavior changed**  

In sandboxed environments libgit2 skips reading configuration from the user's home directory. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.5)
- **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](https://github.com/libgit2/libgit2/releases/tag/v0.28.5)

## libgit2 0.28.0 breaking changes

libgit2 0.28.0: 14 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](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Renamed** `GIT_INDEXCAP`  

GIT_INDEXCAP values now use the GIT_INDEX_CAPABILITY\_ prefix; the old names remain for compatibility. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Renamed** `giterr_`  

The giterr\_ functions now use the git_error\_ prefix and GITERR\_ constants use GIT_ERROR\_; old names remain for compatibility. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

HTTP proxy support is now built in and libcurl is no longer a dependency, so proxy behavior may differ. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

Submodule configuration is ignored when the submodule name attempts path traversal. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

Trailing spaces in .gitignore files are no longer treated as part of the pattern, so matching changes. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

Checked-out files may get different line endings to match newer git versions. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

Reference logs are now written when core.logallrefupdates is set to always. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

Windows builds now always use cdecl; the option to build a stdcall library has been removed. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)
- **Behavior changed**  

Adding or checking out a symlink named .gitmodules is no longer allowed. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.28.0)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## libgit2 0.27.10 breaking changes

libgit2 0.27.10: 2 breaking changes.

- **Behavior changed**  

Paths starting with .git: are now rejected on every platform, so code writing such entries will fail. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.27.10)
- **Default changed**  

NTFS path protections are now enabled by default on all systems, which may reject paths that were previously accepted. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.27.10)

## libgit2 0.27.9 breaking changes

libgit2 0.27.9: 1 breaking change.

- **Behavior changed**  

The ProgramData configuration file is now read only when it is owned by the administrator or the current user. [github.com](https://github.com/libgit2/libgit2/releases/tag/v0.27.9)

## Older versions

1 older version.

### libgit2 0.27.5 breaking changes

libgit2 0.27.5: 1 breaking change.

- **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](https://github.com/libgit2/libgit2/releases/tag/v0.27.5)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
