add another one to get the prending fixes branches
awk -F "$_TAB" '/^[^#]/ && $2=="git"{ print $3; }' "$CTRL_FILE"
}
+get_pending_branches()
+{
+ awk -F "$_TAB" '/^[^#]/ && $2=="git"{ print $3; } $1=="pending-fixes" { exit; }' "$CTRL_FILE"
+}
+
get_contacts()
{
get_control_field "$1" 1
prev=$(git tag -l next-* | sort | tail -n 2 | head -n 1 | sed 's/next-//')
nmc=$(git rev-list --no-merges --count origin/master..HEAD^)
ss=$(git diff --shortstat -M -C origin/master..HEAD^)
-ntrees=$(grep -v -c '^#' "$CTRL_FILE")
-npend=$(sed '/^#/d;/^pending-fixes/q' "$CTRL_FILE" | wc -l)
-npend=$(( npend - 2 ))
+ntrees=$(get_branches | wc -l)
+npend=$(get_pending_branches | wc -l)
+npend=$(( npend - 1 ))
sed -i.bak -e 's/^\(Changes since\) [0-9]*:/\1 '"$prev"':/' \
-e 's/^\(Non-merge commits .*:\) [0-9]*/\1 '"$nmc"'/'\