[gitg] Update for changes in diff flags in libgit2-glib



commit e0ec1d416d569653a690ff161b4c30607c7c8bf7
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Sun Mar 3 23:19:06 2013 +0100

    Update for changes in diff flags in libgit2-glib

 libgitg-gtk/gitg-gtk-diff-view-request-diff.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala 
b/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala
index 408c734..190b392 100644
--- a/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala
+++ b/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala
@@ -119,7 +119,7 @@ namespace GitgGtk
 
                        builder.set_member_name("status").add_int_value(delta.get_status());
                        builder.set_member_name("similarity").add_int_value(delta.get_similarity());
-                       builder.set_member_name("binary").add_int_value(delta.get_binary());
+                       builder.set_member_name("binary").add_int_value((int64)((delta.get_flags() & 
Ggit.DiffFlag.NOT_BINARY) == 0));
 
                        builder.set_member_name("hunks").begin_array();
 
@@ -265,7 +265,7 @@ namespace GitgGtk
                                                return 1;
                                        }
 
-                                       if (delta.get_binary() != 1)
+                                       if ((delta.get_flags() & Ggit.DiffFlag.NOT_BINARY) == 0)
                                        {
                                                ++numlines;
 


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