- Complete the previous fix: dates in the journal entries are also formatted
according to the correct configuration variable.
- Add unit tests.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Instead of checking if a date in its epoch representation has changed, 'task
edit' checks if a date has changed in its 'dateformat' representation.
- The check has not been extended to the annotations for a technical reason
(bug #705).
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- The dates shown and accepted when editing are formated using dateformat even
for annotations (dateformat.annotation is thus ignored).
- No test is provided because it involves an external editor.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Fixed bug #996, so that verbosity code and documentation are in agreement,
and that the 'verbose=off' works as intended (thanks to Peter De Poorter,
Louis-Claude Canon).
- Fixed bug #995, which mis-parsed UUIDs in filters as other elements (thanks
to Bryce Harrington).
- Nibbler no longer permits 8-character UUID abbreviations, because too often
they resemble other forms, such as '1111111d' which looks like a duration.
- Modified unit tests accordingly.
- Added std::string::reserve in high-use locations.
- Used Task::get_date over Task::get where possible.
- Added missing code (bug) for waking up any completed tasks that are freshly
waited.
- Greater use of STL methods for bulk copying.
- Fixed bug #991, which removes an obsolete consistency check.
- Removed 'annotations' example from man page, because it is obsolete.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Fixed bug #987, so that total active time does not continue to accumulate
after an active task is completed.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- Introduced a new filter optimization that recognizes filters with no 'OR', or
'XOR' operators, includes IDs, but does not include UUIDs. This combination
means completed.data is not referenced.
- Fixed bug where '6 months' was interpreted as 180 days, but when rendered
was shown as '5 months' (thanks to Aikido Guy).
- Multiple unit test corrections.
- Broke the indentTree function into two pieces - one that processes
a list, the other that processes a single item. This makes it more
efficient for use places that have only one element.
- Addressed valgrind complaints by freeing allocations for commands and columns.
This leaves one complaint about getpwuid, which is either an optional free,
or not valid, depending on OS. (Thanks to Bryce Harrington).