git

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package git provides functions for setting up a temporary git work tree

Index

Constants

View Source
const WorktreePrefix = "diff-ref-"

Variables

This section is empty.

Functions

func GetRepoRoot added in v0.2.2

func GetRepoRoot() (string, error)

GetRepoRoot finds the top-level directory of the current git repository.

func SetupWorkTree

func SetupWorkTree(repoRoot, gitRef string) (string, func(), error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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