unison/unison-src/transcripts/update-on-conflict.md
2022-08-31 14:18:37 -04:00

29 lines
321 B
Markdown

# Update on conflict
```ucm:hide
.> builtins.merge
```
```unison
a.x = 1
b.x = 2
```
Cause a conflict:
```ucm
.> add
.merged> merge .a
.merged> merge .b
```
Updating conflicted definitions works fine, and the associated patch contains two entries.
```unison
x = 3
```
```ucm
.merged> update
.merged> view.patch
```