mirror of
https://github.com/unisonweb/unison.git
synced 2024-08-15 13:30:27 +03:00
845 B
845 B
scratch/main> builtins.merge
def = "first value"
scratch/main> update
def = "second value"
Can reset to a value from history by number.
scratch/main> update
scratch/main> history
scratch/main> reset 2
scratch/main> view def
scratch/main> history
Can reset to a value from reflog by number.
scratch/main> reflog
-- Reset the current branch to the first history element
scratch/main> reset 2
scratch/main> view def
scratch/main> history
reset branch
foo/main> history
a = 5
foo/main> update
foo/empty> reset /main:
foo/empty> view a
foo/empty> history
second argument is always interpreted as a branch
main.a = 3
foo/main> update
foo/main> history
foo/main> reset 2 main