- 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:
Dan White 2011-03-19 00:55:57 -04:00 committed by Paul Beckingham
parent 17f97651a3
commit 4b71fa73f8
10 changed files with 241 additions and 11 deletions

View file

@ -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
{