summaryrefslogtreecommitdiff
path: root/src/config_diff.mli
AgeCommit message (Collapse)Author
2025-03-30T7272: expose config_tree cloneJohn Estabrook
2025-02-03T6946: add function get_tagged_delete_tree to restore tag valuesJohn Estabrook
The config diff function produces both del(ete) and sub(tract) trees. The delete tree contains the minimal path difference between compared trees, for example, between the active and proposed configs; this is the information needed to execute removal of a path. The subtract tree contains the full paths in active that are not in proposed; this retains necessary information in certain cases. In case all tag values of a tag node are removed, the delete tree contains only the tag node itself, however for proper script execution of a deleted tag node, one will need the removed tag node values: restore this information from the subtract tree.
2024-10-24T5528: add support for cstore_diff functionJohn Estabrook
2024-03-29T6180: add ability to apply mask to config treeJohn Estabrook
2023-07-27T5317: remove mutable referencesJohn Estabrook
Redesign and implement version without mutable refs.
2023-07-27T5316: drop trim functionsJohn Estabrook
2023-07-27T5316: use a single pass of diff function instead of trim functionJohn Estabrook
2023-03-23T5089: add tree_union for use in unit test.John Estabrook
2023-02-10T4991: add function show_diff for unified diff of configsJohn Estabrook
2022-02-28T4235: add function 'trim_tree' to produce tree for delete commandsJohn Estabrook
2022-02-25T4235: change type/variable names for clarity; add is_empty for listJohn Estabrook
2022-02-25T4235: keep full paths in subtract treeJohn Estabrook
In the intial implementation, the delete tree only kept the first node of a path not present in the RHS of the comparison; this was done as a convenience for generating 'trimmed' delete commands for the CLI. However, this loses needed information, and breaks the symmetry of results: LHS, RHS -> del, inter, add RHS, LHS -> add, inter, del Keep full paths in delete tree and rename trees.del to trees.sub(-tract). A separate function 'trim_tree' will be provided to produce a CLI-appopriate delete tree and commands.
2022-02-23T4235: function diff_tree now returns single tree containing diffsJohn Estabrook
2022-02-08configtree: T4235: implementation of config tree diffJohn Estabrook