Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fc module can update base also when on parent arc #2911

Merged
merged 8 commits into from
Dec 5, 2024

Conversation

mjfh
Copy link
Contributor

@mjfh mjfh commented Dec 4, 2024

All the magic happens in Update calculateNewBase() for target on parent arc. The other patches do not change any functionality.

mjfh added 8 commits December 4, 2024 16:22
why:
  Despite its name, `CanonicalDesc` contained a cursor arc (or leg) from
  the base tree with a designated block (or Header) on its arc members
  (aka blocks.) The type is used more generally than only for s block on
  the canonical cursor.

  Also, the `PivotArc` provides some more fields for caching intermediate
  data. This simplifies managing extra arguments for some functions.
details:
  No need to find cursor arc if it is given as function argument.
details:
  Avoid the syllable `canonical` in function names that do not strictly
  apply to the canonical chain. So renaming
  * findCanonicalHead() => findCursorArc()
  * canonicalChain() => findHeader()
  * trimCanonicalChain() => trimCursorArc()
why:
  Will generalise action for more complex scenarios in future.
why:
  So it can directly be used as argument into `updateBase()`
@jangko jangko merged commit 90dd86b into master Dec 5, 2024
10 checks passed
@jangko jangko deleted the FC-module-can-update-base-also-when-on-parent-arc branch December 5, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants