Documentation
¶
Overview ¶
Package bare is responsible for applying customizations related to working with bare repositories
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Patcher ¶
type Patcher struct {
// contains filtered or unexported fields
}
Patcher is responsible for patching bare repos with desired customizations.
func NewPatcher ¶
NewPatcher returns a new Patcher.
func (Patcher) SetupWorktreeWorkaround ¶
func (p Patcher) SetupWorktreeWorkaround(r *git.Repository, repoPath string) error
SetupWorktreeWorkaround applies the popular git worktree workaround from https://morgan.cugerone.com/blog/workarounds-to-git-worktree-using-bare-repository-and-cannot-fetch-remote-branches/ when working with bare repositories.
Click to show internal directories.
Click to hide internal directories.