libgit2/libgit2 — Issue #582: Rename git_diff_delta::new to allow use from C++
Author: nelhage
Created: 2012-03-03 17:01:06+00:00
State: open

Commit 74fa4bfae37e9d7c9e35550c881b114d7a83c4fa recently added a field named `new` to the `git_diff_delta` struct in `diff.h`. This prevents `diff.h` from being included into a C++ file, as `new` is a reserved word in C++. Prior to this change, building C++ source against libgit2's headers worked fine, and it'd be great if we could continue to do so.