DiffAlignmentMethod

DiffAlignmentMethod

is an option to Diff and related functions that specifies how to align cells when comparing notebooks.

Details

  • Possible settings for DiffAlignmentMethod include:
  • "CellEditDistance"align cells based upon pairwise values of EditDistance and ByteCount
    "ExpressionUUID"align cells with matching ExpressionUUID values
    "SequenceAlignment"align cells according to the alignment determined by SequenceAlignment
  • The default value of DiffAlignmentMethodAutomatic is usually equivalent to "ExpressionUUID". In unusual cases where cells in one or both notebooks are missing ExpressionUUID values, Automatic effectively reverts to "CellEditDistance".

Examples

Basic Examples  (1)

Construct notebook expressions to compare:

Align the cells based on their ExpressionUUID values:

Align the cells based on an analysis of the cell contents:

Do not attempt to align individual cells with one another in a block of changed cells:

Wolfram Research (2024), DiffAlignmentMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html.

Text

Wolfram Research (2024), DiffAlignmentMethod, Wolfram Language function, https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html.

CMS

Wolfram Language. 2024. "DiffAlignmentMethod." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html.

APA

Wolfram Language. (2024). DiffAlignmentMethod. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html

BibTeX

@misc{reference.wolfram_2024_diffalignmentmethod, author="Wolfram Research", title="{DiffAlignmentMethod}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_diffalignmentmethod, organization={Wolfram Research}, title={DiffAlignmentMethod}, year={2024}, url={https://reference.wolfram.com/language/ref/DiffAlignmentMethod.html}, note=[Accessed: 21-November-2024 ]}