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 1
1
using System ;
2
+ using System . Collections . Generic ;
2
3
using System . Diagnostics ;
3
4
using System . Globalization ;
4
5
using System . Text ;
@@ -51,6 +52,11 @@ internal void AppendToPatch(string patch)
51
52
/// </summary>
52
53
public virtual int LinesDeleted { get ; internal set ; }
53
54
55
+ public IEnumerable < Line > AddedLines { get ; internal set ; }
56
+
57
+ public IEnumerable < Line > DeletedLines { get ; internal set ; }
58
+
59
+
54
60
/// <summary>
55
61
/// The patch corresponding to these changes.
56
62
/// </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