[gitg/filter-branch-sigsev: 4/4] 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: 4/4] search_path property is not passed correctly to lambda
- Date: Sat, 19 Jan 2019 11:35:05 +0000 (UTC)
commit 86f6cd5472bce9bfa31ba82f98ed9dd008039591
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]