gittree

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 4 Imported by: 0

README

gittree example

gittree.CheckClean is the clean+synced gate that refuses repo-shaped verbs on a dirty tree (uncommitted changes, untracked files, detached HEAD, no upstream). cli-guard uses this so every audit row reconstructs from git history.

$ cd /path/to/clean/repo && go run /path/to/cli-guard/examples/gittree build
ok: tree is clean, pretend-build runs

$ touch /path/to/clean/repo/dirt && go run /path/to/cli-guard/examples/gittree build
refused: working tree is dirty

Documentation

Overview

Command gittree demonstrates the clean+synced gate.

Jump to

Keyboard shortcuts

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