Reduce the verbosity of git calls.

This commit is contained in:
Anthony Gelibert 2014-01-20 21:02:41 +01:00 committed by Olivier Mengué
parent a61e382bb2
commit b5830cdf28

View File

@ -710,11 +710,11 @@ _lp_git_branch_color()
local end
end="$NO_COL"
if LC_ALL=C \git status 2>/dev/null | grep -q '\(# Untracked\)'; then
if LC_ALL=C \git status -s 2>/dev/null | grep -q '^\?\?'; then
end="$LP_COLOR_CHANGES$LP_MARK_UNTRACKED$end"
fi
if [[ -n "$(\git stash list 2>/dev/null)" ]]; then
if [[ -n "$(\git stash list -n 1 2>/dev/null)" ]]; then
end="$LP_COLOR_COMMITS$LP_MARK_STASH$end"
fi