8000 Convert Reference.IsRemoteTrackingBranch() into a property · lofcz/libgit2sharp@c27e7ca · GitHub
[go: up one dir, main page]

Skip to content

Commit c27e7ca

Browse files
committed
Convert Reference.IsRemoteTrackingBranch() into a property
1 parent 450fb1b commit c27e7ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

LibGit2Sharp.Tests/ReferenceFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ public void CanIdentifyReferenceKind()
830830
using (var repo = new Repository(path))
831831
{
832832
Assert.True(repo.Refs["refs/heads/master"].IsLocalBranch);
833-
Assert.True(repo.Refs["refs/remotes/origin/master"].IsRemoteTrackingBranch());
833+
Assert.True(repo.Refs["refs/remotes/origin/master"].IsRemoteTrackingBranch);
834834
Assert.True(repo.Refs["refs/tags/lw"].IsTag());
835835
}
836836

LibGit2Sharp/Reference.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ public virtual bool IsLocalBranch
9696
/// Determine if the current <see cref="Reference"/> is a remote tracking branch.
9797
/// </summary>
9898
/// <returns>true if the current <see cref="Reference"/> is a remote tracking branch, false otherwise.</returns>
99-
public virtual bool IsRemoteTrackingBranch()
99+
public virtual bool IsRemoteTrackingBranch
100100
{
101-
return CanonicalName.LooksLikeRemoteTrackingBranch();
101+
get { return CanonicalName.LooksLikeRemoteTrackingBranch(); }
102102
}
103103

104104
/// <summary>

0 commit comments

Comments
 (0)
0