Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ WithRepoDir
Function
WithRepoDir
git/command.go:104–108 ·
view source on GitHub ↗
(repoDir string)
Source
from the content-addressed store, hash-verified
102
}
103
104
func
WithRepoDir(repoDir string) CommandModifier {
105
return
func
(gc *Command) {
106
gc.setRepoDir(repoDir)
107
}
108
}
Callers
5
checkoutBranch
Function · 0.92
TestClientFetch
Function · 0.85
TestClientPull
Function · 0.85
TestClientPush
Function · 0.85
TestClientClone
Function · 0.85
Calls
1
setRepoDir
Method · 0.80
Tested by
4
TestClientFetch
Function · 0.68
TestClientPull
Function · 0.68
TestClientPush
Function · 0.68
TestClientClone
Function · 0.68