git_update_all_branches.sh: only update branches which are checked out already
This commit is contained in:
parent
9184d50bdb
commit
6211b64059
|
@ -34,7 +34,7 @@ then
|
|||
fi
|
||||
fi
|
||||
|
||||
branchges=$(${BINgit} -C "${gitreppath}" br -a | grep remotes | grep -v "remotes/origin/HEAD" | wc -l)
|
||||
branchges=$(${BINgit} -C "${gitreppath}" br -a | grep -v remotes | grep -v "remotes/origin/HEAD" | wc -l)
|
||||
activebranch="$(${BINgit} -C "${gitreppath}" branch | grep "\*" | awk '{print $2}')"
|
||||
|
||||
HIDECURSOR
|
||||
|
@ -47,7 +47,7 @@ echo -e " x x"
|
|||
echo -e " mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj"
|
||||
WRITE
|
||||
|
||||
for f in $(${BINgit} -C "${gitreppath}" br -a | grep remotes | grep -v "remotes/origin/HEAD" | awk '{print $1}' | cut -f3 -d\/)
|
||||
for f in $(${BINgit} -C "${gitreppath}" br -a | grep -v remotes | awk '{print $1}')
|
||||
do
|
||||
#echo "Updateing[${branchcounter}/${branchges}]: ${f}"
|
||||
showBar ${branchcounter} ${branchges} ${f} "[$((${branchcounter} + 1))/${branchges}]" #Call bar drawing function "showBar"
|
||||
|
|
Loading…
Reference in New Issue