cp /dev/null "$LOG_FILE"
heads=$(awk -F '\t' '/^#/ {next;} { printf("%s/%s ", $3, $5); }' ../etc/control)
+prev_heads=""
total=0
# c=$(git rev-list --no-merges origin/master.."$h")
# [ -z "$c" ] &&
# continue
- count=$(git rev-list --count --no-merges "$base".."$h")
+ count=$(git rev-list --count --no-merges $prev_heads "$base".."$h")
[ "$count" == 0 ] &&
continue
- echo "$h" "$count" | tee -a "$LOG_FILE"
+ total=$(( $total + $count ))
+ echo | tee -a "$LOG_FILE"
+ echo "${h%%/*}" "$count" | tee -a "$LOG_FILE"
+ echo | tee -a "$LOG_FILE"
# git shortlog --no-walk "$c" 2>&1 | tee -a "$LOG_FILE"
- git log --oneline --no-merges "$base".."$h" | tee -a "$LOG_FILE"
+ git log --oneline --no-merges $prev_heads "$base".."$h" | tee -a "$LOG_FILE"
# gitk stable..$h
-
+ prev_heads="$prev_heads ^$h"
done
+echo | tee -a "$LOG_FILE"
+echo "Total $total"
+
exit 0