Commit graph

33 commits

Author SHA1 Message Date
Thomas Lauf
7b4a234f03 Unify coding style
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-12-23 22:38:31 +01:00
Thomas Lauf
6d79ea4a6d Update copyright statements
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-09-18 12:33:17 +02:00
Thomas Lauf
34bba44d38 Replace CLI::getFilter by CLI::getRange and CLI::getTags
- Add CLI::getRange
- Make CLI::getTags return a set instead of a vector. This has the side effect that the tags are sorted now...
- Replace variable 'filter' by 'range' and 'tags'. Variable 'filter' was just a wrapper, better use the components directly
2023-06-17 14:19:02 +02:00
Thomas Lauf
2535c2c399 Cleanup includes
- Remove unused includes
- Use '<..>' style consistently
- Strip any paths from include
- Replace deprecated C++ headers
- Sort includes according to LLVM rules
  https://llvm.org/docs/CodingStandards.html#include-style

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-06-17 14:19:02 +02:00
Thomas Lauf
14bed139f6 Update copyrights
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
993ae85d5c Add check whether requested intervals have been found when searching by ID
- Restores behaviour which got lost when switching to the new interval filtering in 9968b9e9
- Add test for each command

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-01-09 11:43:56 +01:00
Thomas Lauf
9968b9e9d1 Replace function getIntervalsByIds by getTracked with new filtering
Replace getIntervalsByIds in commands CmdAnnotate, CmdContinue, CmdDelete,
CmdJoin, CmdLengthen, CmdModify, CmdMove, CmdResize, CmdShorten, CmdSplit,
CmdTag, and CmdUntag

Relates to #468

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-12-02 22:31:15 +01:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
Thomas Lauf
ad58309159 Update Copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Thomas Lauf
e8511c5efd Extract function CLI::getDuration ()
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-03-03 07:58:04 +01:00
Thomas Lauf
28da1b55f2 Hoist verbose flag 2020-02-23 19:03:54 +01:00
Shaun Ruffell
2fcca6f949 trivial:coding-style: Add curly braces around blocks modified recently
timwarrior coding standard is for there to be curly braces around all code
blocks.

See https://github.com/GothenburgBitFactory/timewarrior/pull/269#discussion_r367937920
2020-01-26 19:49:23 +01:00
Shaun Ruffell
62bde62961 CmdLenghten: Do not load entire database
Related to issue #245
2020-01-17 17:48:57 +01:00
Thomas Lauf
d64017a7a6 Update copyright dates
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-10-18 10:59:16 +02:00
Thomas Lauf
f72c4fda52 Extract class Journal from class Database
- const-ify Transaction and UndoAction
- Clang-tidying
2019-06-19 18:05:44 +02:00
Thomas Lauf
9dd106116c Let Interval inherit from Range
- Remove 1 level of indirection
- Remove public field Interval::range (instead use interval directly)
2018-09-19 06:32:56 +02:00
Thomas Lauf
4f5eb6eb0c Make warning about new tags adhere to :quiet hint 2018-09-07 10:13:22 +02:00
Thomas Lauf
cfdd3680a4 #9 TI-1: Move starting and stopping of transactions to commands 2018-07-22 00:01:31 +02:00
Simon Ruderich
2271bd9eea Use https:// link for opensource.org 2018-03-16 23:11:08 +01:00
Thomas Lauf
8ce9e83ab5 TI-93 #97 Make CLI::getIds() return a set to guarantee uniqueness of ids 2018-03-08 20:44:10 +01:00
Paul Beckingham
88d644d193 Copyright 2018 2017-12-31 19:37:13 -05:00
Thomas Lauf
dc6d3b9672 Commands: Reduce code duplication
- Extract function to gather ids
2017-11-21 23:12:45 +01:00
Paul Beckingham
f65c672b73 CmdLengthen: Test commit 2017-04-10 23:54:25 -04:00
Thomas Lauf
9b0f8e8c15 TI-68: Let commands convert synthetic intervals before modifying them
- command 'lengthen'
- command 'move'
- command 'shorten'
- command 'tag'
- command 'untag'
2017-04-08 14:51:55 +02:00
Paul Beckingham
1091cc2085 Copyright update 2017-01-01 12:45:32 -05:00
Paul Beckingham
396135e062 Cleanup: Removed useless comment 2016-07-24 14:34:34 -04:00
Paul Beckingham
b14e997ae4 CmdLengthen: Cleanup 2016-07-24 10:46:24 -04:00
Paul Beckingham
bd7f3d5015 CmdX: Added error message when expected ids are missing 2016-07-17 08:55:18 -04:00
Paul Beckingham
8ee4319732 CmdLengthen: Only validates additions 2016-07-09 15:12:18 -04:00
Paul Beckingham
f66127f473 validate: Renamed validateInterval to vaildate, and integrated 2016-07-07 22:24:48 -04:00
Paul Beckingham
ffe326ed48 Cmd*: Added validateInterval calls prior to all interval modification 2016-07-02 13:59:08 -04:00
Paul Beckingham
bd5c9be6ed CmdLengthen: Obeys verbose mode 2016-06-11 11:04:12 -04:00
Paul Beckingham
bedaa624a3 CmdLengthen: Implemented 'lengthen' command 2016-06-06 23:01:51 -04:00