Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ Worktrees
Method
Worktrees
pkg/cmd/repo/sync/git.go:38–40 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
36
}
37
38
func
(g *gitExecuter) Worktrees() ([]git.Worktree, error) {
39
return
g.client.Worktrees(context.Background())
40
}
41
42
func
(g *gitExecuter) CreateBranch(branch, ref, upstream string) error {
43
ctx := context.Background()
Callers
nothing calls this directly
Calls
1
Worktrees
Method · 0.65
Tested by
no test coverage detected