Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ CurrentBranch
Method
CurrentBranch
pkg/cmd/repo/sync/git.go:10–10 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
8
9
type
gitClient
interface
{
10
CurrentBranch() (string, error)
11
UpdateBranch(string, string) error
12
Worktrees() ([]git.Worktree, error)
13
CreateBranch(string, string, string) error
Callers
6
branchFunc
Function · 0.65
checkRun
Function · 0.65
CurrentBranch
Method · 0.65
executeLocalRepoSync
Function · 0.65
runPublishRelease
Function · 0.65
ensurePushed
Function · 0.65
Calls
no outgoing calls
Tested by
no test coverage detected