Skip to main content

Diff Selection

OneDev allows to select a range of text while comparing revisions to create permanent links or add comments.

Valid Selections

As long as selection begin and end are on same revision, the selection will be valid even if the selection body contains other revision:

valid-selection1.png

valid-selection2.png

Invaid Selections

Some selections are considered invalid:

  1. If the selection contains unexpanded lines like below:

    invalid-selection1.png

  2. If the selection contains expanded lines like below:

    invalid-selection11.png

  3. If begin and end of the selection are on different revision like below:

    invalid-selection2.png

    invalid-selection3.png