mirror of https://gitlab.com/ceda_ei/wish
Re-order items in vcs
This commit is contained in:
parent
5f90303bb1
commit
425ddc114e
|
@ -18,12 +18,13 @@ function wish_vcs_main() {
|
|||
local op=$(git diff --numstat HEAD 2> /dev/null || echo -1)
|
||||
if [[ $op != "-1" ]]; then
|
||||
local git
|
||||
if [[ $(git status --porcelain 2> /dev/null | grep "^??") != "" ]]; then
|
||||
local git=" $WISH_VCS_GIT_UNTRACKED_SYMBOL"
|
||||
fi
|
||||
git="$git $WISH_VCS_GIT_SYMBOL "
|
||||
git="$git$(git branch | grep -F \* | sed 's/\* //') "
|
||||
|
||||
if [[ $(git status --porcelain 2> /dev/null | grep "^??") != "" ]]; then
|
||||
git="$git$WISH_VCS_GIT_UNTRACKED_SYMBOL "
|
||||
fi
|
||||
|
||||
local add=$(echo "$op" | awk '{a += $1} END {print a}')
|
||||
local del=$(echo "$op" | awk '{d += $2} END {print d}')
|
||||
if [[ $add != 0 ]] || [[ $del != 0 ]]; then
|
||||
|
|
Loading…
Reference in New Issue