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:12–12 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
CurrentBranch() (string, error)
11
UpdateBranch(string, string) error
12
Worktrees() ([]git.Worktree, error)
13
CreateBranch(string, string, string) error
14
Fetch(string, string) error
15
HasLocalBranch(string) bool
Callers
6
TestClientWorktreesListsRepositoryWorktrees
Function · 0.65
TestClientWorktreeRemoveRemovesOptionLikePath
Function · 0.65
TestClientWorktreePruneRemovesMissingWorktreeMetadata
Function · 0.65
Worktrees
Method · 0.65
executeLocalRepoSync
Function · 0.65
deleteLocalBranch
Method · 0.65
Calls
no outgoing calls
Tested by
3
TestClientWorktreesListsRepositoryWorktrees
Function · 0.52
TestClientWorktreeRemoveRemovesOptionLikePath
Function · 0.52
TestClientWorktreePruneRemovesMissingWorktreeMetadata
Function · 0.52