8000 Give props to Jon Skeet · gitextensions/libgit2sharp@e72a1a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit e72a1a4

Browse files
martinwoodwardnulltoken
authored andcommitted
Give props to Jon Skeet
Add link back to source Stack Overflow post for the CopyStream method after obtaining permission from Jon Skeet to include in LibGit2Sharp.
1 parent 82a86f2 commit e72a1a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

LibGit2Sharp.Tests/BlobFixture.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public void CanReadBlobStream()
7070

7171
public static void CopyStream(Stream input, Stream output)
7272
{
73+
// Reused from the following Stack Overflow post with permission
74+
// of Jon Skeet (obtained on 25 Feb 2013)
75+
// http://stackoverflow.com/questions/411592/how-do-i-save-a-stream-to-a-file/411605#411605
7376
var buffer = new byte[8*1024];
7477
int len;
7578
while ((len = input.Read(buffer, 0, buffer.Length)) > 0)

0 commit comments

Comments
 (0)
0