Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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