On Mon, Jul 15, 2019 at 5:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <thomas.munro@gmail.com> writes:
> > 42 Doc
> [...] I see a lot more than 42 such commit messages in the past
> year, so not sure what you were counting?
I would have tried to exclude the first line messages if I'd thought
of that. But anyway, the reason for the low Doc number is case
sensitivity. I ran that on a Mac and its lame collation support failed
me in the "sort" step (also -i didn't do what I wanted, but that
wasn't the issue). Trying again on FreeBSD box and explicitly setting
LANG for the benefit of anyone else wanting to run this (see end), and
then removing a few obvious false matches, I now get similar numbers
in most fields but a higher "doc" number:
767 Author
9 Authors
144 Backpatch-through
55 Backpatch
14 Bug
14 Co-authored-by
27 Diagnosed-by
1599 Discussion
119 doc
36 docs
284 Reported-by
5 Review
8 Reviewed by
460 Reviewed-by
7 Security
9 Tested-by
git log --since 2018-07-14 | \
grep -E '^ +[a-zA-Z].*: ' | \
LANG=en_US.UTF-8 sort | \
sed 's/:.*//' | \
LANG=en_US.UTF-8 uniq -ic | \
grep -v -E '^ *[12] '
--
Thomas Munro
https://enterprisedb.com