mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Validate: Rearranged code to elimiante warning
This commit is contained in:
parent
51db77b5cd
commit
bbb8bcc1ed
1 changed files with 9 additions and 7 deletions
|
@ -160,10 +160,14 @@ static void autoAdjust (
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Warn on new tag.
|
||||
static void warnOnNewTag (
|
||||
const Rules& rules,
|
||||
Database& database,
|
||||
const Interval& interval)
|
||||
const Rules&,
|
||||
Database&,
|
||||
const Interval&)
|
||||
{
|
||||
// TODO This warning is not working properly, because when an interval is
|
||||
// modified, it is first deleted, then added. This causes this code to
|
||||
// determine that it is always a new tag.
|
||||
/*
|
||||
if (rules.getBoolean ("verbose"))
|
||||
{
|
||||
std::set <std::string> tags;
|
||||
|
@ -183,6 +187,7 @@ static void warnOnNewTag (
|
|||
if (tags.find (tag) == tags.end ())
|
||||
std::cout << "Note: '" << tag << "' is a new tag.\n";
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -203,10 +208,7 @@ void validate (
|
|||
|
||||
autoAdjust (findHint (cli, ":adjust"), rules, database, interval);
|
||||
|
||||
// TODO This warning is not working properly, because when an interval is
|
||||
// modified, it is first deleted, then added. This causes this code to
|
||||
// determine that it is always a new tag.
|
||||
//warnOnNewTag (rules, database, interval);
|
||||
warnOnNewTag (rules, database, interval);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue