[gitg/filter-branch-sigsev: 40/40] search_path property is not passed correctly to lambda
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/filter-branch-sigsev: 40/40] search_path property is not passed correctly to lambda
- Date: Fri, 5 Apr 2019 17:29:04 +0000 (UTC)
commit d9e2fd52412c3dca62be115857848b56180bd87c
Author: Alberto Fanjul <albertofanjul gmail com>
Date: Mon Jan 14 09:40:45 2019 +0100
search_path property is not passed correctly to lambda
libgitg/gitg-commit-model.vala | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-commit-model.vala b/libgitg/gitg-commit-model.vala
index 5141c95a..f2cb7391 100644
--- a/libgitg/gitg-commit-model.vala
+++ b/libgitg/gitg-commit-model.vala
@@ -420,13 +420,12 @@ namespace Gitg
opts.flags |= Ggit.DiffOption.SHOW_BINARY;
var diff = c.get_diff(opts, 0);
- var search_path_copy = search_path;
try {
diff.foreach(
(delta, progress) => {
var old_file_path =
delta.get_old_file().get_path();
var new_file_path =
delta.get_new_file().get_path();
- if
(new_file_path.contains(search_path_copy) || old_file_path.contains(search_path_copy)) {
+ if
(new_file_path.contains(search_path) || old_file_path.contains(search_path)) {
return -7;
}
return 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]