CodeChecker cmd diff --new shows resolved results
CodeChecker cmd diff, when called with --new should only show bug with unresolved, new, reopened status.
diff --git a/libcodechecker/cmd/cmd_line_client.py b/libcodechecker/cmd/cmd_line_client.py
index 055ff7a0..2ab27eb3 100644
--- a/libcodechecker/cmd/cmd_line_client.py
+++ b/libcodechecker/cmd/cmd_line_client.py
@@ -168,6 +168,14 @@ def handle_diff_results(args):
 
         report_filter = ttypes.ReportFilter()
         add_filter_conditions(report_filter, args.filter)
+
+        # Do not show resolved bugs in compare mode new.
+        if cmp_data.diffType == ttypes.DiffType.NEW:
+            report_filter.detectionStatus = [
+                ttypes.DetectionStatus.NEW,
+                ttypes.DetectionStatus.UNRESOLVED,
+                ttypes.DetectionStatus.REOPENED]
+
         sort_mode = [(ttypes.SortMode(
             ttypes.SortType.FILENAME,
             ttypes.Order.ASC))]
['libcodechecker/cmd/cmd_line_client.py']