File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Collections . Generic ;
23using System . Diagnostics ;
34using System . Globalization ;
45using System . Text ;
@@ -51,6 +52,11 @@ internal void AppendToPatch(string patch)
5152 /// </summary>
5253 public virtual int LinesDeleted { get ; internal set ; }
5354
55+ public IEnumerable < Line > AddedLines { get ; internal set ; }
56+
57+ public IEnumerable < Line > DeletedLines { get ; internal set ; }
58+
59+
5460 /// <summary>
5561 /// The patch corresponding to these changes.
5662 /// </summary>
Original file line number Diff line number Diff line change 1+ using System ;
2+ using System . Collections . Generic ;
3+ using System . Text ;
4+
5+ namespace LibGit2Sharp . Core
6+ {
7+ internal struct Line
8+ {
9+ /// <summary>
10+ /// Points to the number of the original line in the blob
11+ /// </summary>
12+ public int LineNumber { get ; }
13+
14+ /// <summary>
15+ /// This content of the line in the original blob
16+ /// </summary>
17+ public String Content { get ; }
18+
19+ internal Line ( int lineNumber , string content )
20+ {
21+ LineNumber = lineNumber ;
22+ Content = content ;
23+ }
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments