Skip to content

Commit

Permalink
Use private protected
Browse files Browse the repository at this point in the history
  • Loading branch information
bording committed Nov 21, 2024
1 parent 77cfeaf commit 66f6940
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions LibGit2Sharp/Reference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ public abstract class Reference : IEquatable<Reference>, IBelongToARepository
protected Reference()
{ }

/// <remarks>
/// This would be protected+internal, were that supported by C#.
/// Do not use except in subclasses.
/// </remarks>
internal Reference(IRepository repo, string canonicalName, string targetIdentifier)
private protected Reference(IRepository repo, string canonicalName, string targetIdentifier)
{
this.repo = repo;
this.canonicalName = canonicalName;
Expand Down

0 comments on commit 66f6940

Please sign in to comment.