From 13cc0ee38ef28bc205632d6561f7b4c2aac4ba2e Mon Sep 17 00:00:00 2001
From: Anton Akhmerov <anton.akhmerov@gmail.com>
Date: Sat, 9 Feb 2019 23:41:36 +0100
Subject: [PATCH] update instructions on checking the author list

---
 RELEASE.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/RELEASE.rst b/RELEASE.rst
index e3836200..15570a4b 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -58,14 +58,16 @@ Starting with Kwant 1.4, we also mention user-visible changes in bugfix
 releases in the whatsnew files.
 
 
-Verify that ``AUTHORS.rst`` is up-to-date
+Verify that ``AUTHORS.rst`` and ``.mailmap`` are up-to-date
 -----------------------------------------
 
-The following command shows the number of commits per author since the last
-annotated tag::
+The following command shows if there are any committers that are missing from
+``AUTHORS.rst``::
 
-    t=$(git describe --abbrev=0); echo Commits since $t; git shortlog -s $t..
+  git shortlog -s | sed -e "s/^ *[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.rst || echo "{}"'
 
+If it outputs anything, then either add the new contributors to the list, or add
+new identities of old contributors to the ``.mailmap``
 
 Make a release, but do not publish it yet
 #########################################
-- 
GitLab