Skip to content

Commit 3e57658

Browse files
committed
Align parameter order with tuple
1 parent fafa498 commit 3e57658

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/NerdBank.GitVersioning/ManagedGit/GitPack.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public Stream GetObject(long offset, string objectType)
221221
throw;
222222
}
223223

224-
return this.cache.Add(offset, objectType, objectStream);
224+
return this.cache.Add(offset, objectStream, objectType);
225225
}
226226

227227
/// <summary>

src/NerdBank.GitVersioning/ManagedGit/GitPackCache.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,15 @@ public abstract class GitPackCache : IDisposable
4545
/// <param name="offset">
4646
/// The offset of the Git object in the Git pack.
4747
/// </param>
48-
/// <param name="objectType">The object type of the object to add to the cache.</param>
4948
/// <param name="stream">
5049
/// A <see cref="Stream"/> which represents the object to add. This stream
5150
/// will be copied to the cache.
5251
/// </param>
52+
/// <param name="objectType">The object type of the object to add to the cache.</param>
5353
/// <returns>
5454
/// A <see cref="Stream"/> which represents the cached entry.
5555
/// </returns>
56-
public abstract Stream Add(long offset, string objectType, Stream stream);
56+
public abstract Stream Add(long offset, Stream stream, string objectType);
5757

5858
/// <inheritdoc/>
5959
public void Dispose()

src/NerdBank.GitVersioning/ManagedGit/GitPackMemoryCache.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Nerdbank.GitVersioning.ManagedGit;
2121
/// twice, it is read from the <see cref="MemoryStream"/>, rather than the underlying <see cref="Stream"/>.
2222
/// </para>
2323
/// <para>
24-
/// <see cref="Add(long, string, Stream)"/> and <see cref="TryOpen(long, out ValueTuple{Stream, string}?)"/> return <see cref="Stream"/>
24+
/// <see cref="Add(long, Stream, string)"/> and <see cref="TryOpen(long, out ValueTuple{Stream, string}?)"/> return <see cref="Stream"/>
2525
/// objects which may operate on the same underlying <see cref="Stream"/>, but independently maintain
2626
/// their state.
2727
/// </para>
@@ -31,7 +31,7 @@ public class GitPackMemoryCache : GitPackCache
3131
private readonly Dictionary<long, (GitPackMemoryCacheStream, string)> cache = new();
3232

3333
/// <inheritdoc/>
34-
public override Stream Add(long offset, string objectType, Stream stream)
34+
public override Stream Add(long offset, Stream stream, string objectType)
3535
{
3636
var cacheStream = new GitPackMemoryCacheStream(stream);
3737
this.cache.Add(offset, (cacheStream, objectType));

src/NerdBank.GitVersioning/ManagedGit/GitPackNullCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class GitPackNullCache : GitPackCache
1919
public static GitPackNullCache Instance { get; } = new GitPackNullCache();
2020

2121
/// <inheritdoc/>
22-
public override Stream Add(long offset, string objectType, Stream stream)
22+
public override Stream Add(long offset, Stream stream, string objectType)
2323
{
2424
return stream;
2525
}

0 commit comments

Comments
 (0)