Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/kptdev/kpt
/ CheckoutBranch
Method
CheckoutBranch
internal/testutil/setup_manager.go:146–146 ·
view source on GitHub ↗
(branch string, create bool)
Source
from the content-addressed store, hash-verified
144
145
type
GitDirectory
interface
{
146
CheckoutBranch(branch string, create bool) error
147
ReplaceData(data string) error
148
Commit(message string) error
149
Tag(tagName string) error
Callers
8
TestCmdMainBranch_execute
Function · 0.65
updateGitDir
Function · 0.65
TestGitUtil_DefaultRef
Function · 0.65
TestCommand_Run_branch
Function · 0.65
TestCommand_Run_toBranchRef
Function · 0.65
TestCommand_Run_toTagRef
Function · 0.65
TestCommand_ResourceMerge_NonKRMUpdates
Function · 0.65
TestCommand_ResourceMerge_WithSetters_TagRef
Function · 0.65
Implementers
2
TestGitRepo
internal/testutil/testutil.go
TestWorkspace
internal/testutil/testutil.go
Calls
no outgoing calls
Tested by
7
TestCmdMainBranch_execute
Function · 0.52
TestGitUtil_DefaultRef
Function · 0.52
TestCommand_Run_branch
Function · 0.52
TestCommand_Run_toBranchRef
Function · 0.52
TestCommand_Run_toTagRef
Function · 0.52
TestCommand_ResourceMerge_NonKRMUpdates
Function · 0.52
TestCommand_ResourceMerge_WithSetters_TagRef
Function · 0.52