mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Suppress git prompt CRLF warnings noise
Drawing prompt in repo with text=auto attribute and mixed line endings in files was spawning crlf conversion warnings to terminal from unsilenced stderr of git diff
This commit is contained in:
parent
25d83ed0d7
commit
a05bcc6a63
1 changed files with 1 additions and 1 deletions
|
@ -475,7 +475,7 @@ set -g ___fish_git_prompt_status_order stagedstate invalidstate dirtystate untra
|
||||||
|
|
||||||
function __fish_git_prompt_informative_status
|
function __fish_git_prompt_informative_status
|
||||||
|
|
||||||
set -l changedFiles (command git diff --name-status | string match -r \\w)
|
set -l changedFiles (command git diff --name-status ^/dev/null | string match -r \\w)
|
||||||
set -l stagedFiles (command git diff --staged --name-status | string match -r \\w)
|
set -l stagedFiles (command git diff --staged --name-status | string match -r \\w)
|
||||||
|
|
||||||
set -l x (count $changedFiles)
|
set -l x (count $changedFiles)
|
||||||
|
|
Loading…
Reference in a new issue