Enhancements - config variables, debug

- "debug" now considered a valid configuration variable.
- "alias.*" now considered a valid configuration variable.
- Moved some messages over to use Context::debug.
This commit is contained in:
Paul Beckingham 2009-06-20 14:14:51 -04:00
parent 344b1aba58
commit 3bed6bb573
3 changed files with 16 additions and 15 deletions

View file

@ -547,7 +547,7 @@ void Context::autoFilter (Task& t, Filter& f)
foreach (word, words)
{
f.push_back (Att ("description", "has", *word));
header ("auto filter: " + att->first + ".has:" + *word);
debug ("auto filter: " + att->first + ".has:" + *word);
}
}
@ -555,7 +555,7 @@ void Context::autoFilter (Task& t, Filter& f)
else if (att->first == "project")
{
f.push_back (Att ("project", "startswith", att->second.value ()));
header ("auto filter: " + att->first + ".startswith:" + att->second.value ());
debug ("auto filter: " + att->first + ".startswith:" + att->second.value ());
}
// The limit attribute does not participate in filtering, and needs to be
@ -571,7 +571,7 @@ void Context::autoFilter (Task& t, Filter& f)
att->first != "tags")
{
f.push_back (att->second);
header ("auto filter: " + att->first + ":" + att->second.value ());
debug ("auto filter: " + att->first + ":" + att->second.value ());
}
}
@ -579,14 +579,14 @@ void Context::autoFilter (Task& t, Filter& f)
foreach (tag, tagAdditions)
{
f.push_back (Att ("tags", "has", *tag));
header ("auto filter: +" + *tag);
debug ("auto filter: +" + *tag);
}
// Include tagRemovals.
foreach (tag, tagRemovals)
{
f.push_back (Att ("tags", "hasnt", *tag));
header ("auto filter: -" + *tag);
debug ("auto filter: -" + *tag);
}
}