Reduce the verbosity of git calls.
This commit is contained in:
parent
a61e382bb2
commit
b5830cdf28
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user