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:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user