8000 Add DiffRange struct · dotjosh/libgit2sharp@b28478f · GitHub
[go: up one dir, main page]

Skip to content

Commit b28478f

Browse files
committed
Add DiffRange struct
1 parent 4cef5d3 commit b28478f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

LibGit2Sharp/Core/GitDiff.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ internal class GitDiffDelta
7878
public bool Binary;
7979
}
8080

81+
[StructLayout(LayoutKind.Sequential)]
82+
internal class GitDiffRange
83+
{
84+
public int OldStart;
85+
public int OldLines;
86+
public int NewStart;
87+
public int NewLines;
88+
}
89+
8190
enum GitDiffLineOrigin : byte
8291
{
8392
GIT_DIFF_LINE_CONTEXT = 0x20, //' ',

0 commit comments

Comments
 (0)
0