File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public DiffOption(Change change, bool isUnstaged)
65
65
/// <param name="change"></param>
66
66
public DiffOption ( Commit commit , Change change )
67
67
{
68
- var baseRevision = commit . Parents . Count == 0 ? Models . Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
68
+ var baseRevision = commit . Parents . Count == 0 ? Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
69
69
_revisions . Add ( baseRevision ) ;
70
70
_revisions . Add ( commit . SHA ) ;
71
71
_path = change . Path ;
@@ -79,7 +79,7 @@ public DiffOption(Commit commit, Change change)
79
79
/// <param name="file"></param>
80
80
public DiffOption ( Commit commit , string file )
81
81
{
82
- var baseRevision = commit . Parents . Count == 0 ? Models . Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
82
+ var baseRevision = commit . Parents . Count == 0 ? Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
83
83
_revisions . Add ( baseRevision ) ;
84
84
_revisions . Add ( commit . SHA ) ;
85
85
_path = file ;
@@ -124,6 +124,6 @@ public override string ToString()
124
124
private readonly string _path ;
125
125
private readonly string _orgPath = string . Empty ;
126
126
private readonly string _extra = string . Empty ;
127
- private readonly List < string > _revisions = new List < string > ( ) ;
127
+ private readonly List < string > _revisions = [ ] ;
128
128
}
129
129
}
You can’t perform that action at this time.
0 commit comments