mirror of
https://github.com/nushell/nushell.git
synced 2025-07-08 18:37:07 +02:00
# Description This PR adds a new `state` key to the output of `gstat` that shows the current repo state state. Like "Clean", "Merge", "Rebase", etc. The full list of possible values can be seen [here](https://docs.rs/git2/latest/git2/enum.RepositoryState.html). This information is somewhat useful when shown in prompt. Not often needed, but sometimes really useful. # User-Facing Changes New key added to `gstat` output. I don't think it should cause issues to `gstat` users. # Tests + Formatting I couldn't find any tests for `nu_plugin_gstat`. # After Submitting I couldn't find any documentation about the output of `gstat`, so I don't think there is anything to be done here either.
Git stat plugin for Nushell
Note: this requires Nushell 0.60 or later
To install:
> cargo install --path .
To add the plugin (from inside Nushell):
> plugin add <path to installed plugin>