bare

package
v0.0.0-...-34958dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 8 Imported by: 0

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

func NewPatcher(ctx context.Context, logger *slog.Logger) Patcher

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL