From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eI0XEJxC2l7YTQAA0tVLHw (envelope-from ) for ; Fri, 05 Jun 2020 13:03:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id mGPGC5xC2l59IQAAbx9fmQ (envelope-from ) for ; Fri, 05 Jun 2020 13:03:24 +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 2002F940AD3 for ; Fri, 5 Jun 2020 13:03:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DC36E6DE1040; Fri, 5 Jun 2020 06:03:19 -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 KO4jer01vYRo; Fri, 5 Jun 2020 06:03:19 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id 5703A6DE1050; Fri, 5 Jun 2020 06:03:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id CA8BC6DE1050 for ; Fri, 5 Jun 2020 06:03:16 -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 N4IW4tUqpE08 for ; Fri, 5 Jun 2020 06:03:16 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id ECEFB6DE1040 for ; Fri, 5 Jun 2020 06:03:15 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.92) (envelope-from ) id 1jhC0A-0004Av-Bm; Fri, 05 Jun 2020 09:03:14 -0400 Received: (nullmailer pid 1899043 invoked by uid 1000); Fri, 05 Jun 2020 13:03:12 -0000 From: David Bremner To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: [PATCH] devel: script to calculate a list of authors. In-Reply-To: References: <20200605100733.1872255-1-david@tethera.net> Date: Fri, 05 Jun 2020 10:03:12 -0300 Message-ID: <874krpu0kv.fsf@tethera.net> 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.01 X-TUID: eaIU4+qWoBAf Tomi Ollila writes: > On Fri, Jun 05 2020, David Bremner wrote: > >> 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. >> --- >> 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..2d9c4af8 >> --- /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 -e "$FILE_EXCLUDE" | xargs -n 1 -d \\n \ >> + git blame -w --line-porcelain -- | \ > > It worked !? =D -- good -- this indentation in line above is interesting... I had to delete a | before git blame to get your version to work, so I accepeted Emacs' suggestion of how to indent since it emphasizes that git blame is an argument to xargs