Skip to main content

Module git

Module git 

Source
Expand description

Git deploy-state — pull a quick snapshot of a repo on a remote host: current branch, HEAD sha, ahead/behind vs upstream, dirty file count, and last commit summary.

Single round-trip: git -C <path> status --porcelain=v2 --branch plus git log -1 --format=%H%x09%an%x09%ar%x09%s, joined with ; so we pay one ssh exec.

Structs§

GitStatus

Functions§

git_status
Fetch deploy-state for repo_path on the given SSH connection.