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)
6565 /// <param name="change"></param>
6666 public DiffOption ( Commit commit , Change change )
6767 {
68- var baseRevision = commit . Parents . Count == 0 ? Models . Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
68+ var baseRevision = commit . Parents . Count == 0 ? Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
6969 _revisions . Add ( baseRevision ) ;
7070 _revisions . Add ( commit . SHA ) ;
7171 _path = change . Path ;
@@ -79,7 +79,7 @@ public DiffOption(Commit commit, Change change)
7979 /// <param name="file"></param>
8080 public DiffOption ( Commit commit , string file )
8181 {
82- var baseRevision = commit . Parents . Count == 0 ? Models . Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
82+ var baseRevision = commit . Parents . Count == 0 ? Commit . EmptyTreeSHA1 : $ "{ commit . SHA } ^";
8383 _revisions . Add ( baseRevision ) ;
8484 _revisions . Add ( commit . SHA ) ;
8585 _path = file ;
@@ -124,6 +124,6 @@ public override string ToString()
124124 private readonly string _path ;
125125 private readonly string _orgPath = string . Empty ;
126126 private readonly string _extra = string . Empty ;
127- private readonly List < string > _revisions = new List < string > ( ) ;
127+ private readonly List < string > _revisions = [ ] ;
128128 }
129129}
You can’t perform that action at this time.
0 commit comments