Skip to content

Lists with addedLines and deletedLines in ContentChanges #1789

Closed
@Stijn-Rutten

Description

@Stijn-Rutten

I would like to have the possibility to have IEnumerables of deletedLines and addedLines in ContentChanges these would contain an instance of the following struct for each line containing the line number and the added or deleted content on that line.

struct Line {
    public int LineNumber { get; }
    public string Content { get; }
}

This modification would make it easier to navigate through the compare different states of files. Instead of having to parse the patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions