We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e3dab commit 4ff12c7Copy full SHA for 4ff12c7
Makefile
@@ -170,7 +170,11 @@ yadm.md: yadm.1
170
.PHONY: contrib
171
contrib:
172
@echo "CONTRIBUTORS\n" > CONTRIBUTORS
173
- @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 \
174
+ git log master gh-pages develop dev-pages \
175
+ --author="$$author" --format=tformat: --numstat | \
176
+ awk "{sum += \$$1 + \$$2} END {print sum \"\t\" \"$$author\"}"; \
177
+ done | sort -nr | cut -f2 >> CONTRIBUTORS
178
179
.PHONY: install
180
install:
0 commit comments