mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 22:07:57 +02:00
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:
committed by
GitHub
parent
8cf9efafbb
commit
1fcce4cffc
@ -220,7 +220,7 @@ impl Stats {
|
|||||||
let mut st: Stats = Default::default();
|
let mut st: Stats = Default::default();
|
||||||
|
|
||||||
st.read_branch(repo);
|
st.read_branch(repo);
|
||||||
st.state = format!("{:?}", repo.state());
|
st.state = format!("{:?}", repo.state()).to_lowercase();
|
||||||
|
|
||||||
let mut opts = git2::StatusOptions::new();
|
let mut opts = git2::StatusOptions::new();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user