Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cli/cli
/ WithRepoDir
Function
WithRepoDir
git/command.go:91–95 ·
view source on GitHub ↗
(repoDir string)
Source
from the content-addressed store, hash-verified
89
}
90
91
func
WithRepoDir(repoDir string) CommandModifier {
92
return
func
(gc *Command) {
93
gc.setRepoDir(repoDir)
94
}
95
}
Callers
10
checkoutBranch
Function · 0.92
TestClientFetchUpdatesRemoteTrackingBranchInModifiedRepoDir
Function · 0.85
TestClientPullFastForwardsCurrentBranch
Function · 0.85
TestClientPushCreatesRemoteBranchAndUpstream
Function · 0.85
TestClientCloneCreatesWorkingRepositoryInModifiedRepoDir
Function · 0.85
TestClientCloneCreatesBareRepository
Function · 0.85
TestClientCloneUsesExplicitBareTarget
Function · 0.85
TestClientCloneReportsMissingRepository
Function · 0.85
TestWithRepoDirInsertsRepositoryBeforeGitArguments
Function · 0.85
TestWithRepoDirReplacesExistingRepository
Function · 0.85
Calls
1
setRepoDir
Method · 0.80
Tested by
9
TestClientFetchUpdatesRemoteTrackingBranchInModifiedRepoDir
Function · 0.68
TestClientPullFastForwardsCurrentBranch
Function · 0.68
TestClientPushCreatesRemoteBranchAndUpstream
Function · 0.68
TestClientCloneCreatesWorkingRepositoryInModifiedRepoDir
Function · 0.68
TestClientCloneCreatesBareRepository
Function · 0.68
TestClientCloneUsesExplicitBareTarget
Function · 0.68
TestClientCloneReportsMissingRepository
Function · 0.68
TestWithRepoDirInsertsRepositoryBeforeGitArguments
Function · 0.68
TestWithRepoDirReplacesExistingRepository
Function · 0.68