[gitg] Disable cached hunks to avoid return incorrect ones



commit 5fcaa7d6edb623b97604945eb9416cc932da38d5
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Sun Oct 28 09:25:51 2018 +0100

    Disable cached hunks to avoid return incorrect ones

 Disable-cached-hunks.patch | 25 +++++++++++++++++++++++++
 org.gnome.gitg.json        | 10 ++++++++--
 2 files changed, 33 insertions(+), 2 deletions(-)
---
diff --git a/Disable-cached-hunks.patch b/Disable-cached-hunks.patch
new file mode 100644
index 00000000..55a820c1
--- /dev/null
+++ b/Disable-cached-hunks.patch
@@ -0,0 +1,25 @@
+From f5449db889d978ad55437f284f8ef0f5bfe9cc60 Mon Sep 17 00:00:00 2001
+From: Alberto Fanjul <albertofanjul gmail com>
+Date: Sun, 28 Oct 2018 09:12:15 +0100
+Subject: [PATCH] Disable cached hunks
+
+---
+ libgit2-glib/ggit-diff.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libgit2-glib/ggit-diff.c b/libgit2-glib/ggit-diff.c
+index 640d946..39da706 100644
+--- a/libgit2-glib/ggit-diff.c
++++ b/libgit2-glib/ggit-diff.c
+@@ -104,7 +104,7 @@ wrap_diff_hunk_cached (CallbackWrapperData *data,
+               return NULL;
+       }
+ 
+-      ghunk = g_hash_table_lookup (data->cached_hunks, hunk);
++      //ghunk = g_hash_table_lookup (data->cached_hunks, hunk);
+ 
+       if (!ghunk)
+       {
+-- 
+2.19.1
+
diff --git a/org.gnome.gitg.json b/org.gnome.gitg.json
index 9ae5575a..c69486bb 100644
--- a/org.gnome.gitg.json
+++ b/org.gnome.gitg.json
@@ -60,7 +60,8 @@
                 },
                 {
                     "type" : "patch",
-                    "path" : "libvaladoc-Allow-disabling-the-graphviz-dependency.patch"
+                    "path" : "libvaladoc-Allow-disabling-the-graphviz-dependency.patch",
+                    "sha256sum": "6bd81c6f816b3e3a76018262be936695683c2681201ece3005f5e06b3a4910e4"
                 }
             ]
         },
@@ -105,6 +106,11 @@
                 {
                     "type" : "git",
                     "url" : "https://gitlab.gnome.org/GNOME/libgit2-glib.git";
+                },
+                {
+                    "type" : "patch",
+                    "path" : "Disable-cached-hunks.patch",
+                    "sha256sum": "aa17b5b15214468f02b2c54f8415849cd35e90382ee6b265abe3a33e47df514f"
                 }
             ]
         },
@@ -188,4 +194,4 @@
             ]
         }
     ]
-}
\ No newline at end of file
+}


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