fix(gstat): make state entry lowercase (#16153)

A follow up to #15965 based on [this
comment](https://github.com/nushell/nushell/pull/15965#issuecomment-3058106114).

# Description

Make Git state values lowercase instead of title case (as in
[upstream](https://docs.rs/git2/latest/git2/enum.RepositoryState.html)).

# User-Facing Changes

Different values.
This commit is contained in:
Evgeni Chasnovski
2025-07-11 00:14:45 +03:00
committed by GitHub
parent 8cf9efafbb
commit 1fcce4cffc

View File

@ -220,7 +220,7 @@ impl Stats {
let mut st: Stats = Default::default();
st.read_branch(repo);
st.state = format!("{:?}", repo.state());
st.state = format!("{:?}", repo.state()).to_lowercase();
let mut opts = git2::StatusOptions::new();