get_pending_branches()
{
- awk -F "$_TAB" '/^[^-#]/ && $2=="git"{ print $3; } $1=="pending-fixes" { exit; }' "$CTRL_FILE"
+ awk -F "$_TAB" '
+ BEGIN { show=0 }
+ /^#/ { next }
+ $2=="switch" { if ($3=="fs-current" || $3=="master" ) show=1
+ else if ($3=="fs-next") show=0
+ next }
+ $2=="branch" && $3=="pending-fixes" { exit }
+ $2=="git" && $3=="fs-current" { next }
+ $2=="git" { if (show == 1) print $3 }' "$CTRL_FILE"
}
get_contacts()
ss=$(git diff --shortstat -M -C origin/master..HEAD^)
ntrees=$(get_branches | wc -l)
npend=$(get_pending_branches | wc -l)
-npend=$(( npend - 1 ))
+# add one for my fixes tree
+npend=$(( npend + 1 ))
sed -i.bak -e 's/^\(Changes since\) [0-9]*:/\1 '"$prev"':/' \
-e 's/^\(Non-merge commits .*:\) [0-9]*/\1 '"$nmc"'/'\