[gitg/filter-branch-sigsev: 3/3] 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: 3/3] search_path property is not passed correctly to lambda
- Date: Thu, 17 Jan 2019 07:14:59 +0000 (UTC)
commit 0fbdb6b2cacdb8d3e546187ec52463245e95aded
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]