From 18ec736503af2f8042f6d64615ab28f65d1d5e8c Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Oct 2019 20:30:38 +0200 Subject: [PATCH] Add id reporting in imag-grep Signed-off-by: Matthias Beyer --- bin/core/imag-grep/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/core/imag-grep/src/lib.rs b/bin/core/imag-grep/src/lib.rs index ae75759b..8a04eaf3 100644 --- a/bin/core/imag-grep/src/lib.rs +++ b/bin/core/imag-grep/src/lib.rs @@ -95,6 +95,7 @@ impl ImagApplication for ImagGrep { .and_then_ok(|entry| { if pattern.is_match(entry.get_content()) { debug!("Matched: {}", entry.get_location()); + rt.report_touched(entry.get_location())?; show(&rt, &entry, &pattern, &opts, &mut count) } else { debug!("Not matched: {}", entry.get_location());