C# (CSharp) GitSharp.Core.Diff Namespace

Classes

Name Description
DiffFormatter Format an EditList as a Git style unified patch script.
Edit A modified region detected between two versions of roughly the same content. Regions should be specified using 0 based notation, so add 1 to the start and end marks for line numbers in a file. An edit where beginA == endA && beginB > endB is an insert edit, that is sequence B inserted the elements in region [beginB, endB) at beginA. An edit where beginA > endA && beginB > endB is a replace edit, that is sequence B has replaced the range of elements between [beginA, endA) with those found in [beginB, endB).
RawText A sequence supporting UNIX formatted text in byte[] format. Elements of the sequence are the lines of the file, as delimited by the UNIX newline character ('\n'). The file content is treated as 8 bit binary text, with no assumptions or requirements on character encoding. Note that the first line of the file is element 0, as defined by the Sequence interface API. Traditionally in a text editor a patch file the first line is line number 1. Callers may need to subtract 1 prior to invoking methods if they are converting from "line number" to "element index".