From d30270e3cc103b85588849245bb6881e5ebc46ec Mon Sep 17 00:00:00 2001 From: Olek Raymond <123381967+OlekRaymond@users.noreply.github.com> Date: Tue, 11 Nov 2025 20:31:17 +0000 Subject: [PATCH 1/2] Update GIT_DIFF_OPTIONS_INIT macro with new fields --- include/git2/diff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/diff.h b/include/git2/diff.h index 856a28f79..bcc75efd4 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -477,7 +477,7 @@ typedef struct { * `git_diff_options_init` programmatic initialization. */ #define GIT_DIFF_OPTIONS_INIT \ - {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL,0}, NULL, NULL, NULL, 3} + {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL,0}, NULL, NULL, NULL, 3, 0, (git_oid_t)0, 0, 0, 0, 0} /** * Initialize git_diff_options structure From 0808a4b65008621a01466904c27ac10f64513bd9 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 25 May 2026 22:00:50 +0100 Subject: [PATCH 2/2] Apply suggestion from @ethomson --- include/git2/diff.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/git2/diff.h b/include/git2/diff.h index bcc75efd4..60f636e07 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -477,7 +477,7 @@ typedef struct { * `git_diff_options_init` programmatic initialization. */ #define GIT_DIFF_OPTIONS_INIT \ - {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL,0}, NULL, NULL, NULL, 3, 0, (git_oid_t)0, 0, 0, 0, 0} + {GIT_DIFF_OPTIONS_VERSION, 0, GIT_SUBMODULE_IGNORE_UNSPECIFIED, {NULL,0}, NULL, NULL, NULL, 3, 0, (git_oid_t)0, 0, 0, NULL, NULL} /** * Initialize git_diff_options structure