[libgit2-glib] types: fix api break in GgitConfigLevel



commit 4fa323ae1af3950a133e009471144ef5b8182170
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Mar 14 23:59:13 2016 +0100

    types: fix api break in GgitConfigLevel

 libgit2-glib/ggit-types.c |    2 ++
 libgit2-glib/ggit-types.h |   14 +++++++++-----
 2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/libgit2-glib/ggit-types.c b/libgit2-glib/ggit-types.c
index 2a97720..35071c1 100644
--- a/libgit2-glib/ggit-types.c
+++ b/libgit2-glib/ggit-types.c
@@ -37,10 +37,12 @@ ASSERT_ENUM (GGIT_FEATURE_THREADS, GIT_FEATURE_THREADS);
 ASSERT_ENUM (GGIT_FEATURE_HTTPS,   GIT_FEATURE_HTTPS);
 ASSERT_ENUM (GGIT_FEATURE_SSH,     GIT_FEATURE_SSH);
 
+ASSERT_ENUM (GGIT_CONFIG_LEVEL_PROGRAMDATA, GIT_CONFIG_LEVEL_PROGRAMDATA);
 ASSERT_ENUM (GGIT_CONFIG_LEVEL_SYSTEM, GIT_CONFIG_LEVEL_SYSTEM);
 ASSERT_ENUM (GGIT_CONFIG_LEVEL_XDG, GIT_CONFIG_LEVEL_XDG);
 ASSERT_ENUM (GGIT_CONFIG_LEVEL_GLOBAL, GIT_CONFIG_LEVEL_GLOBAL);
 ASSERT_ENUM (GGIT_CONFIG_LEVEL_LOCAL, GIT_CONFIG_LEVEL_LOCAL);
+ASSERT_ENUM (GGIT_CONFIG_LEVEL_APP, GIT_CONFIG_LEVEL_APP);
 ASSERT_ENUM (GGIT_CONFIG_LEVEL_HIGHEST, GIT_CONFIG_HIGHEST_LEVEL);
 
 ASSERT_ENUM (GGIT_DELTA_UNMODIFIED, GIT_DELTA_UNMODIFIED);
diff --git a/libgit2-glib/ggit-types.h b/libgit2-glib/ggit-types.h
index 1fc0e21..29d4ac8 100644
--- a/libgit2-glib/ggit-types.h
+++ b/libgit2-glib/ggit-types.h
@@ -336,10 +336,12 @@ typedef enum
 
 /**
  * GgitConfigLevel:
+ * @GGIT_CONFIG_LEVEL_PROGRAMDATA: System-wide on Windows, for compatibility with portable git.
  * @GGIT_CONFIG_LEVEL_SYSTEM: System-wide configuration file.
  * @GGIT_CONFIG_LEVEL_XDG: XDG compatible configuration file (.config/git/config).
  * @GGIT_CONFIG_LEVEL_GLOBAL: User-specific configuration file, also called Global configuration file.
  * @GGIT_CONFIG_LEVEL_LOCAL: Repository specific configuration file.
+ * @GGIT_CONFIG_LEVEL_APP: Application specific configuration file; freely defined by applications.
  * @GGIT_CONFIG_LEVEL_HIGHEST: Represents the highest level of a config file.
  *
  * Priority level of a config file.
@@ -348,11 +350,13 @@ typedef enum
  */
 typedef enum
 {
-       GGIT_CONFIG_LEVEL_SYSTEM  = 1,
-       GGIT_CONFIG_LEVEL_XDG     = 2,
-       GGIT_CONFIG_LEVEL_GLOBAL  = 3,
-       GGIT_CONFIG_LEVEL_LOCAL   = 4,
-       GGIT_CONFIG_LEVEL_HIGHEST = -1
+       GGIT_CONFIG_LEVEL_PROGRAMDATA = 1,
+       GGIT_CONFIG_LEVEL_SYSTEM      = 2,
+       GGIT_CONFIG_LEVEL_XDG         = 3,
+       GGIT_CONFIG_LEVEL_GLOBAL      = 4,
+       GGIT_CONFIG_LEVEL_LOCAL       = 5,
+       GGIT_CONFIG_LEVEL_APP         = 6,
+       GGIT_CONFIG_LEVEL_HIGHEST     = -1
 } GgitConfigLevel;
 
 /**


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