Documentation
¶
Overview ¶
Command git-stack is a Graphite-style stacked-branch CLI. Installed on PATH, git exposes it as `git stack <cmd>`.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cmd wires the cobra command tree.
|
Package cmd wires the cobra command tree. |
|
pkg
|
|
|
agents
Package agents registers the git-stack MCP server with coding-agent CLIs.
|
Package agents registers the git-stack MCP server with coding-agent CLIs. |
|
ai
Package ai is the port for drafting commit messages, branch names and pull-request text.
|
Package ai is the port for drafting commit messages, branch names and pull-request text. |
|
ai/claudecode
Package claudecode implements ai.Drafter with the local Claude Code CLI in headless mode (`claude -p`).
|
Package claudecode implements ai.Drafter with the local Claude Code CLI in headless mode (`claude -p`). |
|
app
Package app holds the use cases.
|
Package app holds the use cases. |
|
backend/ghstack
Package ghstack implements the stack ports on top of GitHub's gh-stack extension.
|
Package ghstack implements the stack ports on top of GitHub's gh-stack extension. |
|
cache
Package cache stores small JSON documents, per repository under <git-common-dir>/git-stack/ or in a directory of the caller's choosing, so that commands (and completion) can render instantly from the last known state.
|
Package cache stores small JSON documents, per repository under <git-common-dir>/git-stack/ or in a directory of the caller's choosing, so that commands (and completion) can render instantly from the last known state. |
|
config
Package config reads git-stack settings from `git config stack.*`.
|
Package config reads git-stack settings from `git config stack.*`. |
|
exec
Package exec runs subprocesses.
|
Package exec runs subprocesses. |
|
exec/exectest
Package exectest provides a scripted exec.Runner for unit tests.
|
Package exectest provides a scripted exec.Runner for unit tests. |
|
forge
Package forge is the port for pull-request operations.
|
Package forge is the port for pull-request operations. |
|
forge/github
Package github implements forge.Forge with the gh CLI.
|
Package github implements forge.Forge with the gh CLI. |
|
git
Package git is a typed wrapper around the git command line.
|
Package git is a typed wrapper around the git command line. |
|
git/gittest
Package gittest creates isolated temporary repositories for tests.
|
Package gittest creates isolated temporary repositories for tests. |
|
gitconfig
Package gitconfig installs and removes the git aliases that make `git create`, `git co` and friends run git-stack.
|
Package gitconfig installs and removes the git aliases that make `git create`, `git co` and friends run git-stack. |
|
install
Package install sets up git aliases, shell completion (with git integration), agent MCP registration and the optional Claude Code skill, and removes exactly what it installed.
|
Package install sets up git aliases, shell completion (with git integration), agent MCP registration and the optional Claude Code skill, and removes exactly what it installed. |
|
mcp
Package mcp exposes the stack use cases as MCP tools over stdio so coding agents can drive git-stack.
|
Package mcp exposes the stack use cases as MCP tools over stdio so coding agents can drive git-stack. |
|
shell
Package shell composes the completion scripts git-stack installs: cobra's generated script for the git-stack binary plus the hooks that make `git stack <TAB>` and git aliases such as `git co <TAB>` complete through the same engine.
|
Package shell composes the completion scripts git-stack installs: cobra's generated script for the git-stack binary plus the hooks that make `git stack <TAB>` and git aliases such as `git co <TAB>` complete through the same engine. |
|
stack
Package stack is the domain model: stacks of branches rooted at a trunk, pure navigation over them, and the ports a backend must implement.
|
Package stack is the domain model: stacks of branches rooted at a trunk, pure navigation over them, and the ports a backend must implement. |
|
stack/stacktest
Package stacktest provides an in-memory stack backend for tests.
|
Package stacktest provides an in-memory stack backend for tests. |
|
ui
Package ui holds every terminal UI component: lipgloss styles, the reusable stack tree renderer and the bubbletea checkout picker.
|
Package ui holds every terminal UI component: lipgloss styles, the reusable stack tree renderer and the bubbletea checkout picker. |
|
update
Package update replaces the running git-stack binary with the latest GitHub release.
|
Package update replaces the running git-stack binary with the latest GitHub release. |
|
version
Package version works out which git-stack this binary is.
|
Package version works out which git-stack this binary is. |
Click to show internal directories.
Click to hide internal directories.