[libgit2-glib: 1/2] Compatibility with libgit2 0.27



commit f6d7a149b40a7b131852f4daf8b428bbc993b12e
Author: Steve Langasek <steve langasek ubuntu com>
Date:   Sun Jul 8 12:51:22 2018 +0100

    Compatibility with libgit2 0.27
    
    git_config_add_file_ondisk() now takes an additional (optional) 'repo'
    argument.  Fix the build failure.
    
    [smcv: Make the API change conditional on LIBGIT2_SOVERSION so we can
    build against either version]
    
    Fixes: #1
    Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=903146
    Signed-off-by: Simon McVittie <smcv debian org>

 libgit2-glib/ggit-config.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/libgit2-glib/ggit-config.c b/libgit2-glib/ggit-config.c
index b6536ce..acdad95 100644
--- a/libgit2-glib/ggit-config.c
+++ b/libgit2-glib/ggit-config.c
@@ -295,6 +295,9 @@ ggit_config_add_file (GgitConfig      *config,
        ret = git_config_add_file_ondisk (_ggit_native_get (config),
                                          path,
                                          (git_config_level_t)level,
+#if LIBGIT2_SOVERSION >= 27
+                                         NULL,
+#endif
                                          force);
        g_free (path);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]