File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/Share/BackgroundJobs/Diffs Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -106,5 +106,10 @@ maybeComputeAndStoreCausalDiff authZReceipt unisonRuntime (CausalDiffInfo {fromC
106
106
authZReceipt
107
107
(fromCodebase, fromRuntime, fromCausalId)
108
108
(toCodebase, toRuntime, toCausalId)
109
- bestCommonAncestorCausalId
109
+ -- This is a little strange. At the moment, if we don't have a proper LCA we
110
+ -- revert to a two-way diff. The other option would be to diff both from an empty
111
+ -- branch, but that's not typically what the user meant.
112
+ -- If this assumption no longer holds true in the future, feel free to change it
113
+ -- to be more explicit about which diff we're calculating.
114
+ (Just $ fromMaybe fromCausalId bestCommonAncestorCausalId)
110
115
pure True
You can’t perform that action at this time.
0 commit comments