From ca2c0d75c5683ffa407b91e092aa3a616a886dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Wed, 12 Dec 2012 18:58:30 +0100 Subject: [PATCH] Update to latest libgit2 Specifically to changes made by ligbit2's pull-request number #1115: https://github.com/libgit2/libgit2/pull/1115 --- src/pygit2/diff.c | 2 +- src/pygit2/index.c | 2 +- src/pygit2/tree.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pygit2/diff.c b/src/pygit2/diff.c index b8ba989..e31a08b 100644 --- a/src/pygit2/diff.c +++ b/src/pygit2/diff.c @@ -360,7 +360,7 @@ PyObject * Diff_find_similar(Diff *self, PyObject *args) { int err; - git_diff_find_options opts = {0}; + git_diff_find_options opts = GIT_DIFF_FIND_OPTIONS_INIT; if (!PyArg_ParseTuple(args, "|i", &opts.flags)) return NULL; diff --git a/src/pygit2/index.c b/src/pygit2/index.c index 2d1d8b5..47730a1 100644 --- a/src/pygit2/index.c +++ b/src/pygit2/index.c @@ -105,7 +105,7 @@ Index_clear(Index *self) PyObject * Index_diff_tree(Index *self, PyObject *args) { - git_diff_options opts = {0}; + git_diff_options opts = GIT_DIFF_OPTIONS_INIT; git_diff_list *diff; int err; diff --git a/src/pygit2/tree.c b/src/pygit2/tree.c index ccdeea6..c7fad3c 100644 --- a/src/pygit2/tree.c +++ b/src/pygit2/tree.c @@ -269,7 +269,7 @@ Tree_getitem(Tree *self, PyObject *value) PyObject * Tree_diff_tree(Tree *self, PyObject *args) { - git_diff_options opts = {0}; + git_diff_options opts = GIT_DIFF_OPTIONS_INIT; git_diff_list *diff; int err;