Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
knotserver: use common ancestor to calculate diffs
the existing diff calculation approach directly compares branches, this forces linear history for merge. this patch updates the diff logic to use the common ancestor commit to calculate diffs. ``` P Q o---o topic / / o---o---o---o master A X Y ``` when diffing topic and master directly with difftree (Q and Y), the commits introduced in master since the creation of the branch, namely, X and Y, are considered "removed" from the generated patch. however, when diffing with the common ancestor A, only changes introduced by P and Q are included in the produced patch. this calculation can be retired in favor of format-patch soon enough (i think).
Author
oppi.li Committer Tangled Date (Apr 7, 2025, 10:02 AM UTC) Commit
Copy SHA
Parent 6c27a747 6c27a7472e1fc93897dd5c8fc8d2782d405abe95