Re: [PATCH] devel: script to calculate a list of authors.

Subject: Re: [PATCH] devel: script to calculate a list of authors.

Date: Fri, 05 Jun 2020 10:03:12 -0300

To: Tomi Ollila, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> 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
_______________________________________________
notmuch mailing list
notmuch@notmuchmail.org
https://notmuchmail.org/mailman/listinfo/notmuch

Thread: