git
mdocker git reports a project’s git state. All calls are local
(git -C <toplevel>) — no network access.
git info
Section titled “git info”Print a snapshot of the project’s working tree.
mdocker git info <name>mdocker --json git info <name>The snapshot includes: branch (or detached-HEAD state); dirty counts (staged, unstaged, untracked); ahead/behind vs. upstream; last commit; remote URL; stash count; and worktrees.
| Behaviour | Detail |
|---|---|
| Non-repo path | Returns {is_repo: false} and exits 0. |
| Subdirectory of a repo | Resolves to git rev-parse --show-toplevel. |
| Network | None — ahead/behind is against the locally known upstream (no git fetch). |
The macOS app’s Git card is built from the --json output.
Related
Section titled “Related”Cookie settings
We only use statistics tools if you allow it. Necessary storage keeps this site working; everything else is off until you decide.
Stores your choice from this dialog in your browser (localStorage). No cookie, no transfer to third parties.
Google Analytics 4 via Google Tag Manager, to measure how the site is used. Loaded only after you allow it.