git

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package git provides error constructors for git repository operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFound

func NotFound() error

NotFound returns an error when git is not installed. The message is loaded from assets and includes guidance for the user.

Returns:

  • error: message from the assets key err.parser.git-not-found

func NotInRepo

func NotInRepo(cause error) error

NotInRepo wraps a failure from git rev-parse.

Parameters:

  • cause: the underlying exec error

Returns:

  • error: "not in a git repository: <cause>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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