Dustin J. Mitchell
9df4c8156e
remove TDB::commit
2023-06-11 17:37:03 -04:00
Dustin J. Mitchell
0882a08d18
Remove unnecessary TDB2::{modify,add} argument
2023-06-11 17:37:03 -04:00
Dustin J. Mitchell
5bb9857984
Use Taskchampion to store Taskwarrior data
...
This replaces the TF2 task files with a TaskChampion replica.
2023-06-11 17:37:03 -04:00
Dustin J. Mitchell
4b814bc602
[BREAKING] remove diff display from 'task undo'
...
TaskChampion does not make the necessary information available to
accomplish this, but see #2928 .
2023-06-11 17:37:03 -04:00
Dustin J. Mitchell
87467f72c7
[BREAKING] remove 'task purge' support
...
TaskChampion removes deleted tasks automatically when they expire, so
this subcommand is no longer required.
2023-06-11 17:37:03 -04:00
Dustin J. Mitchell
35c8ce2ccb
Remove references to TDB2::read_only
...
A TC replica is always read-write.
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
f452100588
Remove references to TDB2::data_size
...
This value will is not relevant for TaskChampion.
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
e3ef6c504a
remove TBD2::clear, only used in tests
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
271d06cd9c
make TDB2.pending/completed non-public
...
References to methods on these fields are replaced with methods on TDB2,
several of which already existed.
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
4ebd0ffb39
make TDB2.undo non-public
...
The stats command calls an API to provide this information in a way that
will still be relevant for TaskChampion, while CmdInfo's access to the
data remains. The TaskChampion interface for per-task hitsory is still
not ready.
2022-07-24 14:18:21 -04:00
Dustin J. Mitchell
c8cfcec48b
Make TDB2.backlog non-public
...
The stats command gets this information from an API that will also work
for TaskChampion. The sync command still accesses the field directly,
as the command must be completely rewritten for TaskChampion.
2022-06-21 12:05:50 -04:00
Dustin J. Mitchell
70f83b34ef
Move diff formatting into Task (simple refactor)
...
The Task class already included two forms of diff. This adds another
two.
2021-12-16 23:03:44 -05:00
Dustin J. Mitchell
dede40bc4e
Replace direct Task.data access with a temp getter (syntactic refactor)
...
Now this getter, `data_removeme`, can easily be grepped out and
replaced, one usage at a time in small PRs.
2021-12-16 23:03:44 -05:00
Tomas Babej
0bc92d6115
meta: Adjust copyright headers
2021-09-05 12:02:07 -04:00
Dustin J. Mitchell
413b8d22b7
Remove references to the 'depends' property outside of Task.cpp
...
With the exception of `taskDifferences` and `taskInfoDifferences`,
deferred to #2572 .
2021-08-17 20:36:54 -04:00
Tomas Babej
db324c41e3
TF2: Upgrade waiting tasks to pending, if applicable
...
This can be safely removed in one of the later releases (likely 3.1 or
later).
2021-08-08 14:27:25 -04:00
Dustin J. Mitchell
901283c79f
[WIP] make 'waiting' status a 'virtual' status
2021-08-08 14:27:25 -04:00
Rosen Penev
5c137f5c8f
use emplace
...
Allows removing the constructor name as emplace forwards the arguments
directly.
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2021-08-05 02:03:59 -04:00
Rosen Penev
04454a995f
clang-tidy: use raw string literals
...
Found with modernize-raw-string-literals
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2021-03-02 20:36:02 -05:00
Tomas Babej
9017cd6e53
doc: Update copyright to 2021
2021-01-02 02:48:22 -05:00
Paul Beckingham
3e0a428185
Revert "[clang-tidy] Use .empty instead of comparing size"
...
This reverts commit a331cceded .
2020-12-05 16:18:37 -05:00
Paul Beckingham
5502729131
Revert "[clang-tidy] Switch C headers to C++ ones"
...
This reverts commit 0344856d65 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
702af00435
Revert "[clang-tidy] Remove redundant const"
...
This reverts commit 55d103c491 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
c43a513158
Revert "[clang-tidy] Replace C style casts with C++ ones"
...
This reverts commit 13e1bf7204 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
364b4ea8bd
Revert "[clang-tidy] Simplify boolean expressions"
...
This reverts commit 51870dff34 .
2020-12-05 16:18:37 -05:00
Paul Beckingham
6ad1b7d0da
Revert "[clang-tidy] match loop size with size()"
...
This reverts commit 68c446ea08 .
2020-12-05 16:18:37 -05:00
Rosen Penev
68c446ea08
[clang-tidy] match loop size with size()
...
Found with bugprone-too-small-loop-variable
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
51870dff34
[clang-tidy] Simplify boolean expressions
...
Found with readability-simplify-boolean-expr
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
13e1bf7204
[clang-tidy] Replace C style casts with C++ ones
...
Found with google-readability-casting
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
55d103c491
[clang-tidy] Remove redundant const
...
Found with readability-const-return-type
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
0344856d65
[clang-tidy] Switch C headers to C++ ones
...
Found using modernize-return-braced-init-list
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Rosen Penev
a331cceded
[clang-tidy] Use .empty instead of comparing size
...
Found with readability-container-size-empty
Signed-off-by: Rosen Penev <rosenp@gmail.com >
2020-12-05 15:03:43 -05:00
Max Rossmannek
09e2cb46d6
Simplify task construction
2020-11-30 01:01:26 -05:00
Max Rossmannek
44bcd58051
Fix Undo command
...
The Undo command broke in 48dff11 when the `onModify` hook got added to
its execution in order to fix #2213 . The reason for it begin broke is
that a Task object is created in an unsafe manner because the `prior`
task may be empty.
Catching this case fixes the bug.
2020-11-30 01:01:26 -05:00
Tomas Babej
a09f9d48ab
Update copyright to 2020
2020-11-21 12:27:05 -05:00
Jochen Sprickerhof
48dff115c2
hook onModify into task undo ( Closes : #2213 )
2020-03-12 10:42:52 -04:00
Tomas Babej
8066e4e6e2
meta: Update copyright year
2019-01-01 08:46:21 -05:00
Vladimir Shulyak
ca55624286
Display task ID when unwaiting task
2018-05-27 23:17:30 +01:00
Kirill Bobyrev
5cdbe6d019
Use nullptr instead lf C-styled NULL
2018-03-07 22:21:28 +03:00
Simon Ruderich
e817dfc800
Always use https:// link for opensource.org
...
It was already used in a few places, make this consistent.
2018-03-04 14:53:07 +01:00
Mark Scannell
7af6db4c17
Portability: Updated to make main re-entrant()
...
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
2018-01-31 19:45:07 -05:00
Paul Beckingham
67e20058b2
l10n: Eliminated STRING_TDB2_*
2018-01-20 12:18:29 -05:00
Paul Beckingham
0de169bb10
Copyright 2018
2017-12-31 19:22:07 -05:00
Paul Beckingham
a1a9cb7786
TDB2: Table headers consistent
2017-03-20 09:06:59 -04:00
Paul Beckingham
4e7576cb79
Merge branch 'recurrence' into 2.6.0
2017-01-07 12:29:11 -05:00
Paul Beckingham
a50e65a134
Copyright update
2017-01-01 12:30:04 -05:00
Paul Beckingham
245ed39b78
Task: Improved method signature
2016-12-31 16:15:24 -05:00
Paul Beckingham
c1bf321631
TDB2: Migrated from ISO8601d to Datetime
2016-12-17 21:22:35 -05:00
Paul Beckingham
c95aa9fa3c
TDB2: Migrated from ViewText to Table
2016-12-17 20:10:21 -05:00
Paul Beckingham
355620c640
libhsared: migrating from local to libshared
2016-12-06 07:20:45 -05:00