gstat for prompt
Get the git status of a repo
This command requires a plugin
The gstat command resides in the gstat plugin. To use this command, you must install and register nu_plugin_gstat. See the Plugins chapter in the book for more information.
Command Type
plugin
Signature
> gstat {flags} (path)
Flags
--no-tag: Disable git tag resolving.
Parameters
path: Path to repo.
Notes
Every count is -1 outside a git repository. Inside one, the status counts (idx_, wt_, ignored and conflicts) are -1 when the status can't be read, for example with a split or sparse index or in a bare repository. wt_renamed counts unstaged renames, a deleted file paired with a similar untracked file, which then don't count as wt_deleted or wt_untracked; a renamed file that was also edited counts in wt_modified too. An ignored directory counts once in ignored.