File tree Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Expand file tree Collapse file tree 4 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ public void CanGeneratePredictableObjectShas()
572
572
Tree tree = commit . Tree ;
573
573
tree . Sha . ShouldEqual ( "2b297e643c551e76cfa1f93810c50811382f9117" ) ;
574
574
575
- Blob blob = tree . Files . Single ( ) ;
575
+ Blob blob = tree . Blobs . Single ( ) ;
576
576
blob . Sha . ShouldEqual ( "9daeafb9864cf43055ae93beb0afd6c7d144bfa4" ) ;
577
577
}
578
578
}
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ public void CanCreateATagPointingToABlob()
307
307
using ( var repo = new Repository ( path . RepositoryPath ) )
308
308
{
309
309
Commit headCommit = repo . Head . Tip ;
310
- Blob blob = headCommit . Tree . Files . First ( ) ;
310
+ Blob blob = headCommit . Tree . Blobs . First ( ) ;
311
311
312
312
Tag tag = repo . ApplyTag ( "blob-tag" , blob . Sha ) ;
313
313
tag . ShouldNotBeNull ( ) ;
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public void CanEnumerateBlobs()
55
55
using ( var repo = new Repository ( BareTestRepoPath ) )
56
56
{
57
57
var tree = repo . Lookup < Tree > ( sha ) ;
58
- tree . Files . Count ( ) . ShouldEqual ( 3 ) ;
58
+ tree . Blobs . Count ( ) . ShouldEqual ( 3 ) ;
59
59
}
60
60
}
61
61
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public IEnumerable<Tree> Trees
90
90
/// <summary>
91
91
/// Gets the <see cref = "Blob" />s immediately under this <see cref = "Tree" />.
92
92
/// </summary>
93
- public IEnumerable < Blob > Files
93
+ public IEnumerable < Blob > Blobs
94
94
{
95
95
get
96
96
{
@@ -101,6 +101,19 @@ public IEnumerable<Blob> Files
101
101
}
102
102
}
103
103
104
+
105
+ /// <summary>
106
+ /// Gets the <see cref = "Blob" />s immediately under this <see cref = "Tree" />.
107
+ /// </summary>
108
+ [ Obsolete ( "This property will be removed in the next release. Please use Tree.Blobs instead." ) ]
109
+ public IEnumerable < Blob > Files
110
+ {
111
+ get
112
+ {
113
+ return Blobs ;
114
+ }
115
+ }
116
+
104
117
internal string Path
105
118
{
106
119
get { return path . Native ; }
You can’t perform that action at this time.
0 commit comments