C# Class GitIStage.PatchDocument

Inheritance: Document
Mostra file Open project: terrajobst/git-istage Class Usage Examples

Public Methods

Method Description
FindEntry ( int lineIndex ) : PatchEntry
FindEntryIndex ( int lineIndex ) : int
Parse ( Patch patch ) : PatchDocument
PatchDocument ( IReadOnlyList entries, IReadOnlyList lines ) : System

Private Methods

Method Description
GetHeaderEnd ( IReadOnlyList lines ) : int
GetLines ( string content ) : IReadOnlyList
GetNextHunk ( IReadOnlyList lines, int index ) : int
ParseLines ( string content ) : IReadOnlyList
TryGetHunkInformation ( string hunkLine, int &oldStart, int &oldLength, int &newStart, int &newLength ) : bool
TryParseRange ( string s, string marker, int &start, int &length ) : bool

Method Details

FindEntry() public method

public FindEntry ( int lineIndex ) : PatchEntry
lineIndex int
return PatchEntry

FindEntryIndex() public method

public FindEntryIndex ( int lineIndex ) : int
lineIndex int
return int

Parse() public static method

public static Parse ( Patch patch ) : PatchDocument
patch Patch
return PatchDocument

PatchDocument() public method

public PatchDocument ( IReadOnlyList entries, IReadOnlyList lines ) : System
entries IReadOnlyList
lines IReadOnlyList
return System