unison/unison-src/transcripts/copy-patch.md
2021-05-28 13:47:31 -06:00

525 B

Test that copying a patch works as expected

x = 1
.> add

Change the definition of x so something goes in our patch:

x = 2
.> update foo.patch

Copy the patch and make sure it's still there.

.> copy.patch foo.patch bar.patch
.> ls foo
.> view.patch foo.patch
.> ls bar
.> view.patch bar.patch

Now move the patch.

.> move.patch foo.patch qux.patch

The moved patch should be gone.

.> view.patch foo.patch
.> ls foo