package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Mar 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package git provides error constructors for git repository operations.
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
NotInRepo wraps a failure from git rev-parse.
Parameters:
- cause: the underlying exec error
Returns:
- error: "not in a git repository: <cause>"
Source Files
¶
Click to show internal directories.
Click to hide internal directories.