8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5800408 commit 30b554cCopy full SHA for 30b554c
LibGit2Sharp.Tests/BranchFixture.cs
@@ -594,6 +594,7 @@ public void DetachedHeadIsNotATrackingBranch()
594
repo.Checkout(headSha);
595
596
Assert.False(repo.Head.IsTracking);
597
+ Assert.Null(repo.Head.TrackedBranch);
598
}
599
600
LibGit2Sharp/DetachedHead.cs
@@ -13,14 +13,11 @@ protected override string Shorten(string branchName)
13
14
15
/// <summary>
16
- /// Determines if this local branch is connected to a remote one.
+ /// Gets the remote branch which is connected to this local one, or null if there is none.
17
/// </summary>
18
- public override bool IsTracking
+ public override Branch TrackedBranch
19
{
20
- get
21
- {
22
- return false;
23
- }
+ get { return null; }
24
25
26
0 commit comments