Browse code

update instructions on checking the author list

Anton Akhmerov authored on 09/02/2019 23:41:36
Showing 1 changed files
... ...
@@ -58,14 +58,16 @@ Starting with Kwant 1.4, we also mention user-visible changes in bugfix
58 58
 releases in the whatsnew files.
59 59
 
60 60
 
61
-Verify that ``AUTHORS.rst`` is up-to-date
61
+Verify that ``AUTHORS.rst`` and ``.mailmap`` are up-to-date
62 62
 -----------------------------------------
63 63
 
64
-The following command shows the number of commits per author since the last
65
-annotated tag::
64
+The following command shows if there are any committers that are missing from
65
+``AUTHORS.rst``::
66 66
 
67
-    t=$(git describe --abbrev=0); echo Commits since $t; git shortlog -s $t..
67
+  git shortlog -s | sed -e "s/^ *[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.rst || echo "{}"'
68 68
 
69
+If it outputs anything, then either add the new contributors to the list, or add
70
+new identities of old contributors to the ``.mailmap``
69 71
 
70 72
 Make a release, but do not publish it yet
71 73
 #########################################