File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ protected override void OnReadline(string line)
39
39
40
40
if ( refName . StartsWith ( PREFIX_DETACHED , StringComparison . Ordinal ) )
41
41
{
42
- branch . IsHead = true ;
42
+ branch . IsDetachedHead = true ;
43
43
}
44
44
45
45
if ( refName . StartsWith ( PREFIX_LOCAL , StringComparison . Ordinal ) )
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ public class Branch
28
28
public string Head { get ; set ; }
29
29
public bool IsLocal { get ; set ; }
30
30
public bool IsCurrent { get ; set ; }
31
+ public bool IsDetachedHead { get ; set ; }
31
32
public string Upstream { get ; set ; }
32
33
public BranchTrackStatus TrackStatus { get ; set ; }
33
34
public string Remote { get ; set ; }
34
- public bool IsHead { get ; set ; }
35
35
36
36
public string FriendlyName => IsLocal ? Name : $ "{ Remote } /{ Name } ";
37
37
}
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ private void SortNodes(List<BranchTreeNode> nodes)
189
189
{
190
190
nodes . Sort ( ( l , r ) =>
191
191
{
192
- if ( l . Backend is Models . Branch { IsHead : true } )
192
+ if ( l . Backend is Models . Branch { IsDetachedHead : true } )
193
193
return - 1 ;
194
194
195
195
if ( l . Backend is Models . Branch )
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public bool CheckoutAfterCreated
35
35
public CreateBranch ( Repository repo , Models . Branch branch )
36
36
{
37
37
_repo = repo ;
38
- _baseOnRevision = branch . FullName ;
38
+ _baseOnRevision = branch . IsDetachedHead ? branch . Head : branch . FullName ;
39
39
40
40
if ( ! branch . IsLocal && repo . Branches . Find ( x => x . IsLocal && x . Name == branch . Name ) == null )
41
41
{
Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ public void RefreshCommits()
746
746
}
747
747
else
748
748
{
749
- limits += "--branches --remotes --tags " ;
749
+ limits += "--exclude=refs/stash --all " ;
750
750
}
751
751
752
752
var commits = new Commands . QueryCommits ( _fullpath , limits ) . Result ( ) ;
You can’t perform that action at this time.
0 commit comments