[gitg] Make the right check to not show binary data



commit b45a88ff2ececdd8272c0a45d42af98a46dfad3c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Mon Mar 11 08:08:41 2013 +0100

    Make the right check to not show binary data

 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 190b392..77e1e46 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((int64)((delta.get_flags() & 
Ggit.DiffFlag.NOT_BINARY) == 0));
+                       builder.set_member_name("binary").add_int_value((int64)((delta.get_flags() & 
Ggit.DiffFlag.BINARY) == 0));
 
                        builder.set_member_name("hunks").begin_array();
 
@@ -265,7 +265,7 @@ namespace GitgGtk
                                                return 1;
                                        }
 
-                                       if ((delta.get_flags() & Ggit.DiffFlag.NOT_BINARY) == 0)
+                                       if ((delta.get_flags() & Ggit.DiffFlag.BINARY) == 0)
                                        {
                                                ++numlines;
 


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