mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-11 16:09:31 +03:00
merge .plan files
This commit is contained in:
parent
ccc01741a3
commit
1f83b56fb1
@ -44,5 +44,20 @@
|
||||
|- ^+ all
|
||||
?~ del all
|
||||
$(del t.del, all (~(del by all) p.i.del))
|
||||
::
|
||||
++ can-join
|
||||
|= {ali/plan-diff bob/plan-diff} ^- ?
|
||||
?& =(~ (~(int by `(map knot *)`del.ali) put.bob)) :: no del-put
|
||||
=(~ (~(int by `(map knot *)`put.ali) del.bob)) :: conflicts
|
||||
.= (~(int by put.ali) put.bob) :: and all put
|
||||
(~(int by put.bob) put.ali) :: values match
|
||||
==
|
||||
::
|
||||
++ join
|
||||
|= {ali/plan-diff bob/plan-diff}
|
||||
^- (unit plan-diff)
|
||||
?. (can-join ali bob)
|
||||
~
|
||||
(some [(~(uni by del.ali) del.bob) (~(uni by put.ali) put.bob)])
|
||||
--
|
||||
--
|
||||
|
Loading…
Reference in New Issue
Block a user