7 # to stabilise the sorts
12 [ -d $sd ] || mkdir $sd || {
13 echo "No stats dir" 1>&2
17 git rev-list --no-merges $base..$next | sort >$sd/$next.sha1s
18 git rev-list --no-merges $base..$rc | sort >$sd/$rc.sha1s
20 # filter out the common commits
21 comm -12 $sd/$next.sha1s $sd/$rc.sha1s >$sd/common_sha1
22 comm -23 $sd/$next.sha1s $sd/$rc.sha1s >$sd/$next.sha1s.1
23 comm -13 $sd/$next.sha1s $sd/$rc.sha1s >$sd/$rc.sha1s.1
25 # now find commits with the same patch-id
26 git diff-tree -p --stdin <$sd/$next.sha1s.1 |
28 sort >$sd/$next.patch_ids
29 git diff-tree -p --stdin <$sd/$rc.sha1s.1 |
31 sort >$sd/$rc.patch_ids
32 join -j 1 $sd/$next.patch_ids $sd/$rc.patch_ids >$sd/common_id
33 join -v 1 -j 1 $sd/$next.patch_ids $sd/$rc.patch_ids |
34 sed 's/^.* //' >$sd/$next.sha1s.2
35 join -v 2 -j 1 $sd/$next.patch_ids $sd/$rc.patch_ids |
36 sed 's/^.* //' >$sd/$rc.sha1s.2
38 # now find commits with the same subject line
39 git log --stdin --no-walk --format='%s|%H' <$sd/$next.sha1s.2 |
40 sed 's/|\(.*\)|/_\1|/g' |
41 sort -f -k 1,1 -t '|' >$sd/$next.subj
42 git log --stdin --no-walk --format='%s|%H' <$sd/$rc.sha1s.2 |
43 sed 's/|\(.*\)|/_\1|/g' |
44 sort -f -k 1,1 -t '|' >$sd/$rc.subj
45 join -i -j 1 -t '|' $sd/$next.subj $sd/$rc.subj >$sd/common_subj
46 join -v 1 -i -j 1 -t '|' $sd/$next.subj $sd/$rc.subj |
47 sed 's/^.*|//' >$sd/$next.sha1s.3
48 join -v 2 -i -j 1 -t '|' $sd/$next.subj $sd/$rc.subj |
49 sed 's/^.*|//' >$sd/$rc.sha1s.3
51 nrc=$(wc -l <$sd/$rc.sha1s)
52 nnext=$(wc -l <$sd/$next.sha1s)
53 ncommsha1=$(wc -l <$sd/common_sha1)
54 ncommid=$(wc -l <$sd/common_id)
55 ncommsubj=$(wc -l <$sd/common_subj)
56 ncomm=$((ncommsha1+ncommid+ncommsibj))
57 pcomm=$((ncomm*100/nrc))
62 As usual, the executive friendly graph is at
63 http://neuling.org/linux-next-size.html :-)
65 (No merge commits counted, $next was the first linux-next after
66 the merge window opened.)
69 printf "%-50s %5d\n" "Commits in $rc (relative to $base):" $nrc
70 printf "%-50s %5d\n" "Commits in $next:" $nnext
71 printf "%-50s %5d\n" "Commits with the same SHA1:" $ncommsha1
72 printf "%-50s %5d (1)\n" "Commits with the same patch_id:" $ncommid
73 printf "%-50s %5d (1)\n" "Commits with the same subject line:" $ncommsubj
77 (1) not counting those in the lines above.
81 printf "%-50s %5d %2d%%\n" "So commits in -rc1 that were in $next:" $ncomm $pcomm
85 Some breakdown of the list of extra commits (relative to $next)
88 Top ten first word of commit summary:
90 $(git log --no-walk --stdin --pretty="format:%s" <$sd/$rc.sha1s.3 |
91 sed -e 's/^\[//;s/[]:( /,;].*$//' |
92 tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
96 $(git log --no-walk --stdin --pretty="format:%aE" <$sd/$rc.sha1s.3 |
97 tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
101 $(git log --no-walk --stdin --pretty="format:%cE" <$sd/$rc.sha1s.3 |
102 tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
104 There are also $(wc -l <$sd/$next.sha1s.3) commits in $next that didn't make it into
107 Top ten first word of commit summary:
109 $(git log --no-walk --stdin --pretty="format:%s" <$sd/$next.sha1s.3 |
110 sed -e 's/^\[//;s/[]:( /,;].*$//' |
111 tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
115 $(git log --no-walk --stdin --pretty="format:%aE" <$sd/$next.sha1s.3 |
116 tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
118 Some of Andrew's patches are fixes for other patches in his tree (and
119 have been merged into those).
123 $(git log --no-walk --stdin --pretty="format:%cE" <$sd/$next.sha1s.3 |
124 tr 'A-Z' 'a-z' | sort | uniq -c | sort -nr | head -n 10)
126 Those commits by me are from the quilt series (mainly Andrew's mmotm