mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Add Replica::num_undo_points and exclude undo points from num_operations
This commit is contained in:
parent
17726ddfe4
commit
4a1556ccb9
6 changed files with 79 additions and 6 deletions
|
@ -558,10 +558,16 @@ TCResult tc_replica_sync(struct TCReplica *rep, struct TCServer *server, bool av
|
|||
TCResult tc_replica_undo(struct TCReplica *rep, int32_t *undone_out);
|
||||
|
||||
/**
|
||||
* Get the number of local, un-synchronized operations, or -1 on error
|
||||
* Get the number of local, un-synchronized operations (not including undo points), or -1 on
|
||||
* error.
|
||||
*/
|
||||
int64_t tc_replica_num_local_operations(struct TCReplica *rep);
|
||||
|
||||
/**
|
||||
* Get the number of undo points (number of undo calls possible), or -1 on error.
|
||||
*/
|
||||
int64_t tc_replica_num_undo_points(struct TCReplica *rep);
|
||||
|
||||
/**
|
||||
* Add an UndoPoint, if one has not already been added by this Replica. This occurs automatically
|
||||
* when a change is made. The `force` flag allows forcing a new UndoPoint even if one has already
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue