gitctx

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gitctx reads git configuration values so the scaffold can auto-populate author fields when the user does not pass explicit flags. Failures are soft: a missing git config just returns empty strings and lets the caller fall back to placeholders or prompts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Available

func Available() bool

Available reports whether `git` exists on PATH. Useful for doctor checks that want to distinguish "git not installed" from "git config unset."

func UserEmail

func UserEmail() string

UserEmail returns `git config user.email`, or empty string if unset or git is not on PATH.

func UserName

func UserName() string

UserName returns `git config user.name`, or empty string if unset or git is not on PATH.

Types

This section is empty.

Jump to

Keyboard shortcuts

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