1
0
Fork 0
mirror of synced 2024-11-04 09:08:56 -05:00

Sort contributors by lines changed

Previously number of commits were used
This commit is contained in:
Tim Byrne 2020-08-08 15:40:29 -05:00
parent 24e3dab328
commit 4ff12c7125
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

View file

@ -170,7 +170,11 @@ yadm.md: yadm.1
.PHONY: contrib
contrib:
@echo "CONTRIBUTORS\n" > CONTRIBUTORS
@git shortlog -ns master gh-pages develop dev-pages | cut -f2 >> CONTRIBUTORS
@IFS=$$'\n'; for author in $$(git shortlog -ns master gh-pages develop dev-pages | cut -f2); do \
git log master gh-pages develop dev-pages \
--author="$$author" --format=tformat: --numstat | \
awk "{sum += \$$1 + \$$2} END {print sum \"\t\" \"$$author\"}"; \
done | sort -nr | cut -f2 >> CONTRIBUTORS
.PHONY: install
install: