Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EnsurePrerequisites = system.EnsurePrerequisites HandleExistingRepo = handleExistingRepo UpdateBareRepoWorktree = updateBareRepoWorktree FreshInstall = freshInstall CloneBareRepo = cloneBareRepo BackupConflicts = backupConflicts CheckoutWorktree = repo.CheckoutWorktree InitSubmodules = repo.InitSubmodules ConfigureBareRepo = repo.ConfigureBareRepo Stat = os.Stat EnsureSSH = ensureSSHIfRequired UISelect = ui.Select BareClone = repo.BareClone )
Test hooks and mockable dependencies
View Source
var FetchRepo = func(ctx context.Context, repoPath, worktreePath string) error { return repo.FetchBareRepo(ctx, repoPath, worktreePath) }
View Source
var PullRebaseRepo = func(ctx context.Context, repoPath, worktreePath string) error { return repo.PullRebaseBareRepo(ctx, repoPath, worktreePath) }
pullRebaseRepo is a package-level variable used for testing.
View Source
var UpdateSubmodules = func(ctx context.Context, repoPath, worktreePath string) error { return repo.InitSubmodules(ctx, repoPath, worktreePath, nil) }
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.