rollback: Roll back commits to an earlier version of the tracked...

Description Usage Arguments Note

Description

Roll back commits to an earlier version of the tracked environment.

Usage

1
2
3
4
## S3 replacement method for class 'tracked_environment'
rollback(env, silent = FALSE) <- value

rollback(env, value = 1, silent = FALSE)

Arguments

env

tracked_environment.

silent

logical. Whether or not to commit a silent rollback. If TRUE, the current chain of commits will not be pruned, so it will be possible to use rollback with a negative number to go back to a future commit. It is the user's responsibility to ensure that the commit stack does not become corrupt.

value

integer. Number of commits to roll back.

Note

Rolling back 0 commits clears the current staged changes.


robertzk/objectdiff documentation built on May 27, 2019, 10:35 a.m.