From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oNb3NoHL114WRgAA0tVLHw (envelope-from ) for ; Wed, 03 Jun 2020 16:10:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kPPaMoHL116jDQAA1q6Kng (envelope-from ) for ; Wed, 03 Jun 2020 16:10:41 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 112EB940039 for ; Wed, 3 Jun 2020 16:10:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 586C26DE0F96; Wed, 3 Jun 2020 09:10:33 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G_AKaDHFs25K; Wed, 3 Jun 2020 09:10:32 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 41DF16DE0F76; Wed, 3 Jun 2020 09:10:32 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 047AE6DE0F76 for ; Wed, 3 Jun 2020 09:10:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hGs_6isCLVEo for ; Wed, 3 Jun 2020 09:10:29 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id BCBDE6DE0F42 for ; Wed, 3 Jun 2020 09:10:29 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.92) (envelope-from ) id 1jgVyG-0007BO-S9; Wed, 03 Jun 2020 12:10:28 -0400 Received: (nullmailer pid 1449866 invoked by uid 1000); Wed, 03 Jun 2020 16:10:26 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [RFC] devel: script to calculate a list of authors. Date: Wed, 3 Jun 2020 13:07:44 -0300 Message-Id: <20200603160743.1449796-1-david@tethera.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.49 X-TUID: JIik5Bc1L3dX As an initial heuristic, report anyone with at least 15 lines of code in the current source tree. Test corpora are excluded, although probabably this doesn't change much about the list of authors produced. --- I realized both AUTHORS and debian/copyright are woefully out of date. I think it makes sense to keep something like this in the repo, both to ease updates and to document a policy. Presuambly 'author ' should be removed from the output, but I'm guessing Tomi will tear this apart anyway ;). devel/author-scan.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devel/author-scan.sh diff --git a/devel/author-scan.sh b/devel/author-scan.sh new file mode 100644 index 00000000..b7b46a33 --- /dev/null +++ b/devel/author-scan.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +FILE_EXCLUDE='corpora' +AUTHOR_EXCLUDE='uncrustify' +# based on the FSF guideline, for want of a better idea. +THRESHOLD=15 + +git ls-files | grep -v "$FILE_EXCLUDE" | + while read f; do + git blame -w --line-porcelain -- "$f" | grep -I '^author ' | grep -v "$AUTHOR_EXCLUDE" + done | sort -fd | uniq -ic | awk "\$1 >= $THRESHOLD" | sort -nr -- 2.26.2