Add an example for undo to man page

This commit is contained in:
Thomas Lauf 2018-10-04 08:42:59 +02:00
parent 64fd98a2bd
commit 8008cd8312

View file

@ -12,4 +12,11 @@ Only commands affecting intervals or Timewarrior configuration can be reverted.
Timewarrior keeps a journal of changes to the interval database and Timewarrior configuration. Timewarrior keeps a journal of changes to the interval database and Timewarrior configuration.
A call to 'undo' removes the last entry in the journal and restores the previous state. A call to 'undo' removes the last entry in the journal and restores the previous state.
As long as there are entries in the journal, you can revert the respective action. As long as there are entries in the journal, you can revert the respective action.
The 'undo' command itself cannot be undone! The 'undo' command itself cannot be undone!
.SH EXAMPLES
Undo an interval modification:
.
$ timew split @1
$ timew undo
.