Feature #710
- Added feature #710, which adds an attribute modifier prefix to return the complement of a filtered set (thanks to Dan White). - Added missing description to the 'help' command. Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
committed by
Paul Beckingham
parent
17f97651a3
commit
4b71fa73f8
@@ -861,12 +861,20 @@ void Context::autoFilter (Att& a, Filter& f)
|
||||
}
|
||||
|
||||
// Projects are matched left-most.
|
||||
else if (a.name () == "project" && a.mod () == "")
|
||||
else if (a.name () == "project" && (a.mod () == "" || a.mod () == "not"))
|
||||
{
|
||||
if (a.value () != "")
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", a.value ()));
|
||||
debug ("auto filter: " + a.name () + ".startswith:" + a.value ());
|
||||
if (a.mod () == "not")
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", a.value (), "negative"));
|
||||
debug ("auto filter: " + a.name () + ".~startswith:" + a.value ());
|
||||
}
|
||||
else
|
||||
{
|
||||
f.push_back (Att ("project", "startswith", a.value ()));
|
||||
debug ("auto filter: " + a.name () + ".startswith:" + a.value ());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user