[gitg/fix-warnings: 3/7] Handle all DiffLineType
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/fix-warnings: 3/7] Handle all DiffLineType
- Date: Tue, 15 Feb 2022 00:33:12 +0000 (UTC)
commit 06a085f332c210e074c46b2b7d9b2e7ec313c5ea
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Tue Feb 15 01:08:59 2022 +0100
Handle all DiffLineType
libgitg/gitg-diff-view-file-renderer-text.vala | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/libgitg/gitg-diff-view-file-renderer-text.vala b/libgitg/gitg-diff-view-file-renderer-text.vala
index 5745f8ee..ae3352d9 100644
--- a/libgitg/gitg-diff-view-file-renderer-text.vala
+++ b/libgitg/gitg-diff-view-file-renderer-text.vala
@@ -750,6 +750,11 @@ class Gitg.DiffViewFileRendererText : Gtk.SourceView, DiffSelectable, DiffViewFi
case Ggit.DiffLineType.DEL_EOFNL:
text = text.substring(1);
break;
+ case Ggit.DiffLineType.HUNK_HDR:
+ case Ggit.DiffLineType.BINARY:
+ case Ggit.DiffLineType.CONTEXT:
+ case Ggit.DiffLineType.FILE_HDR:
+ break;
}
if (i == 0 || rtype != region.type)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]