mu: default to include related, skip dups

Add optioins --include-dups and --skip-related that are the reverse of
the previous ones. Leave the old options (hidden) for backward
compat (ie., scripts that use those options)
This commit is contained in:
Dirk-Jan C. Binnema
2019-12-01 16:09:28 +02:00
parent 0bc2e605a4
commit f86ed12eb3
5 changed files with 35 additions and 24 deletions

View File

@ -130,9 +130,9 @@ run_query (MuQuery *xapian, const gchar *query, MuConfig *opts, GError **err)
qflags = MU_QUERY_FLAG_NONE;
if (opts->reverse)
qflags |= MU_QUERY_FLAG_DESCENDING;
if (opts->skip_dups)
if (!opts->include_dups)
qflags |= MU_QUERY_FLAG_SKIP_DUPS;
if (opts->include_related)
if (!opts->skip_related)
qflags |= MU_QUERY_FLAG_INCLUDE_RELATED;
if (opts->threads)
qflags |= MU_QUERY_FLAG_THREADS;