Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ HasLocalBranch
Method
HasLocalBranch
pkg/cmd/repo/sync/git.go:15–15 ·
view source on GitHub ↗
(string)
Source
from the content-addressed store, hash-verified
13
CreateBranch(string, string, string) error
14
Fetch(string, string) error
15
HasLocalBranch(string) bool
16
IsAncestor(string, string) (bool, error)
17
IsDirty() (bool, error)
18
MergeFastForward(string) error
Callers
14
TestClientDeleteLocalBranchRemovesUnmergedBranch
Function · 0.65
TestClientDeleteLocalBranchReportsCheckedOutBranch
Function · 0.65
TestClientHasLocalBranchFindsExistingBranch
Function · 0.65
TestClientHasLocalBranchRejectsMissingBranch
Function · 0.65
TestClientCheckoutNewBranchReportsMissingTrackingBranch
Function · 0.65
checkoutBranch
Function · 0.65
HasLocalBranch
Method · 0.65
executeLocalRepoSync
Function · 0.65
closeRun
Function · 0.65
deleteLocalBranch
Method · 0.65
NewMergeContext
Function · 0.65
cmdsForExistingRemote
Function · 0.65
Calls
no outgoing calls
Tested by
5
TestClientDeleteLocalBranchRemovesUnmergedBranch
Function · 0.52
TestClientDeleteLocalBranchReportsCheckedOutBranch
Function · 0.52
TestClientHasLocalBranchFindsExistingBranch
Function · 0.52
TestClientHasLocalBranchRejectsMissingBranch
Function · 0.52
TestClientCheckoutNewBranchReportsMissingTrackingBranch
Function · 0.52