mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
fish_git_prompt: Count untracked files from the repository root
We already do this for the non-informative (non-counting) version. Fixes #6086.
This commit is contained in:
@@ -545,7 +545,7 @@ function __fish_git_prompt_informative_status
|
||||
set -l x (count $stagedFiles)
|
||||
set -l invalidstate (count (string match -r "U" -- $stagedFiles))
|
||||
set -l stagedstate (math $x - $invalidstate)
|
||||
set -l untrackedfiles (command git ls-files --others --exclude-standard | count)
|
||||
set -l untrackedfiles (command git ls-files --others --exclude-standard :/ | count)
|
||||
set -l stashstate 0
|
||||
set -l stashfile "$argv[1]/logs/refs/stash"
|
||||
if set -q __fish_git_prompt_showstashstate; and test -e "$stashfile"
|
||||
|
||||
Reference in New Issue
Block a user