Print a little forest of local git branches
- Rust 98.5%
- Just 1.5%
Show each branch's ahead/behind status relative to its upstream (e.g. [+2/-5]) between the SHA and commit summary columns. Enforce a minimum 20-character width for the branch name column and add extra spacing between all columns for readability. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .forgejo/workflows | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| justfile | ||
| LICENSE | ||
| README.md | ||
Glade
Print a little forest of local git branches
Glade prints a forest of trees of your local git branches, arranged so that each branch tracking another local branch appears as a child of that branch. Branches with no upstream (or a remote upstream) are shown as roots.
Installation
cargo install --path .
Or from the repository directly:
cargo install --git https://forge.djehuti.com/bcox/glade
Usage
Run glade inside any git repository:
$ glade
* main a1b2c3d Initial commit
├── feature/baz ec13850 Add baz feature
└── feature/foo 2fbd814 Add foo feature
└── topic/bar 38a7f10 Fix bar in foo
The current branch is marked with * and shown in green. Branches
checked out in other worktrees are marked with + and shown in cyan,
with the worktree directory name displayed.
Options
| Flag | Description |
|---|---|
--color |
Force colored output (even when piped) |
--no-color |
Suppress colored output (even on a terminal) |
By default, color is enabled when stdout is a terminal.
LLM Use
This project was initially bootstrapped by Claude Code (Opus 4.6).
License
This tool is released under a Creative Commons CC0 license.
See LICENSE.