Fix issue with filtering out +0/-0

This commit is contained in:
Philip Fulgham 2018-02-22 19:59:20 -05:00
parent e3d4545f74
commit 11786eab9b
No known key found for this signature in database
GPG Key ID: 11D1C84051C3E00B

View File

@ -244,7 +244,7 @@ function __bobthefish_git_dirty_verbose -S -d 'Print a more verbose dirty state
set -l changes (command git diff --numstat | awk '{ added += $1; removed += $2 } END { print "+" added "/-" removed }')
or return
echo "$changes " | string replace '+0/' '' | string replace '/-0 ' ' '
echo "$changes " | string replace '+0/-0 ' '' | string replace '+0/' '' | string replace '/-0 ' ' '
end
# ==============================