[libgit2-glib] Add missing status enum types



commit 8a977106fa579bc137de27048e56642db1251f1a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Oct 20 15:05:00 2012 +0200

    Add missing status enum types

 libgit2-glib/ggit-types.c |   19 +++++++++++--------
 libgit2-glib/ggit-types.h |   19 +++++++++++--------
 2 files changed, 22 insertions(+), 16 deletions(-)
---
diff --git a/libgit2-glib/ggit-types.c b/libgit2-glib/ggit-types.c
index 2e194da..bd4a5e6 100644
--- a/libgit2-glib/ggit-types.c
+++ b/libgit2-glib/ggit-types.c
@@ -111,14 +111,17 @@ ASSERT_ENUM (GGIT_SORT_TIME,        GIT_SORT_TIME);
 ASSERT_ENUM (GGIT_SORT_REVERSE,     GIT_SORT_REVERSE);
 
 
-ASSERT_ENUM (GGIT_STATUS_CURRENT,               GIT_STATUS_CURRENT);
-ASSERT_ENUM (GGIT_STATUS_INDEX_NEW,             GIT_STATUS_INDEX_NEW);
-ASSERT_ENUM (GGIT_STATUS_INDEX_MODIFIED,        GIT_STATUS_INDEX_MODIFIED);
-ASSERT_ENUM (GGIT_STATUS_INDEX_DELETED,         GIT_STATUS_INDEX_DELETED);
-ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_NEW,      GIT_STATUS_WT_NEW);
-ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_MODIFIED, GIT_STATUS_WT_MODIFIED);
-ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_DELETED,  GIT_STATUS_WT_DELETED);
-ASSERT_ENUM (GGIT_STATUS_IGNORED,               GIT_STATUS_IGNORED);
+ASSERT_ENUM (GGIT_STATUS_CURRENT,                 GIT_STATUS_CURRENT);
+ASSERT_ENUM (GGIT_STATUS_INDEX_NEW,               GIT_STATUS_INDEX_NEW);
+ASSERT_ENUM (GGIT_STATUS_INDEX_MODIFIED,          GIT_STATUS_INDEX_MODIFIED);
+ASSERT_ENUM (GGIT_STATUS_INDEX_DELETED,           GIT_STATUS_INDEX_DELETED);
+ASSERT_ENUM (GGIT_STATUS_INDEX_RENAMED,           GIT_STATUS_INDEX_RENAMED);
+ASSERT_ENUM (GGIT_STATUS_INDEX_TYPECHANGE,        GIT_STATUS_INDEX_TYPECHANGE);
+ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_NEW,        GIT_STATUS_WT_NEW);
+ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_MODIFIED,   GIT_STATUS_WT_MODIFIED);
+ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_DELETED,    GIT_STATUS_WT_DELETED);
+ASSERT_ENUM (GGIT_STATUS_WORKING_TREE_TYPECHANGE, GIT_STATUS_WT_TYPECHANGE);
+ASSERT_ENUM (GGIT_STATUS_IGNORED,                 GIT_STATUS_IGNORED);
 
 
 ASSERT_ENUM (GGIT_SUBMODULE_IGNORE_DEFAULT, GIT_SUBMODULE_IGNORE_DEFAULT);
diff --git a/libgit2-glib/ggit-types.h b/libgit2-glib/ggit-types.h
index 49073f8..d6e6427 100644
--- a/libgit2-glib/ggit-types.h
+++ b/libgit2-glib/ggit-types.h
@@ -480,14 +480,17 @@ typedef enum {
  * Describes a file's status.
  */
 typedef enum {
-	GGIT_STATUS_CURRENT               = 0,
-	GGIT_STATUS_INDEX_NEW             = 1 << 0,
-	GGIT_STATUS_INDEX_MODIFIED        = 1 << 1,
-	GGIT_STATUS_INDEX_DELETED         = 1 << 2,
-	GGIT_STATUS_WORKING_TREE_NEW      = 1 << 3,
-	GGIT_STATUS_WORKING_TREE_MODIFIED = 1 << 4,
-	GGIT_STATUS_WORKING_TREE_DELETED  = 1 << 5,
-	GGIT_STATUS_IGNORED               = 1 << 6
+	GGIT_STATUS_CURRENT                 = 0,
+	GGIT_STATUS_INDEX_NEW               = 1 << 0,
+	GGIT_STATUS_INDEX_MODIFIED          = 1 << 1,
+	GGIT_STATUS_INDEX_DELETED           = 1 << 2,
+	GGIT_STATUS_INDEX_RENAMED           = 1 << 3,
+	GGIT_STATUS_INDEX_TYPECHANGE        = 1 << 4,
+	GGIT_STATUS_WORKING_TREE_NEW        = 1 << 7,
+	GGIT_STATUS_WORKING_TREE_MODIFIED   = 1 << 8,
+	GGIT_STATUS_WORKING_TREE_DELETED    = 1 << 9,
+	GGIT_STATUS_WORKING_TREE_TYPECHANGE = 1 << 10,
+	GGIT_STATUS_IGNORED                 = 1 << 14
 } GgitStatusFlags;
 
 /**



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