mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
CmdTrack: Now splits intervals
This commit is contained in:
parent
eca0a7e43a
commit
5899b51295
1 changed files with 4 additions and 1 deletions
|
@ -36,8 +36,11 @@ int CmdTrack (
|
|||
Database& database)
|
||||
{
|
||||
auto filter = createFilterIntervalFromCLI (cli);
|
||||
database.addInterval (filter);
|
||||
auto timeline = createTimelineFromData (rules, database, filter);
|
||||
for (auto& interval : splitInterval (filter, timeline.excluded (rules)))
|
||||
database.addInterval (interval);
|
||||
|
||||
// TODO intervalSummarїze needs to operate on a vector of similar intervals.
|
||||
// User feedback.
|
||||
if (rules.getBoolean ("verbose"))
|
||||
std::cout << intervalSummarize (rules, filter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue