]> git.ozlabs.org Git - next-scripts/blob - check_left
ignore warnings about tools kabi headers changing
[next-scripts] / check_left
1 #!/bin/bash
2
3 LOG_FILE="../left_over.log"
4
5 cp /dev/null "$LOG_FILE"
6
7 heads=$(awk -F '\t' '/^#/ {next;} { printf("%s/%s ", $3, $5); }' ../etc/control)
8
9 total=0
10
11 for h in $heads; do
12         base=origin/master
13         case "$h" in
14         akpm/*)
15                 base=akpm/master-base
16                 ;;
17         esac
18 #       echo "$h"
19 #       mb=$(git merge-base origin/master "$h")
20 #       rh=$(git rev-parse "$h")
21 #       [ "$mb" = "$rh" ] &&
22 #               continue
23
24 #       c=$(git rev-list --pretty='format:%m%H' --no-merges --left-right --cherry-pick origin/master..."$h" | sed -n 's/^>//p')
25 #       c=$(git rev-list --no-merges origin/master.."$h")
26 #       [ -z "$c" ] &&
27 #               continue
28         count=$(git rev-list --count --no-merges "$base".."$h")
29         [ "$count" == 0 ] &&
30                 continue
31
32         echo "$h" "$count" | tee -a "$LOG_FILE"
33 #       git shortlog --no-walk "$c" 2>&1 | tee -a "$LOG_FILE"
34         git log --oneline --no-merges "$base".."$h" | tee -a "$LOG_FILE"
35
36 #       gitk stable..$h
37
38 done
39
40 exit 0