[gitg] Do not process diff lines for binary deltas
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Do not process diff lines for binary deltas
- Date: Sun, 28 Oct 2012 21:54:47 +0000 (UTC)
commit e4efaf5cf2da8f4ab141c76195144b4731cf1488
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Sun Oct 28 22:54:08 2012 +0100
Do not process diff lines for binary deltas
libgitg-gtk/gitg-gtk-diff-view-request-diff.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala b/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala
index 4f871e9..5aa2ead 100644
--- a/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala
+++ b/libgitg-gtk/gitg-gtk-diff-view-request-diff.vala
@@ -236,7 +236,11 @@ namespace GitgGtk
return 1;
}
- line_cb(builder, delta, range, line_type, ((string)content).substring(0, content.length));
+ if (delta.get_binary() != 1)
+ {
+ line_cb(builder, delta, range, line_type, ((string)content).substring(0, content.length));
+ }
+
return 0;
}
);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]