[smuxi: 97/179] build: ignore accented chars in `git-contributors` script
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 97/179] build: ignore accented chars in `git-contributors` script
- Date: Sat, 4 Nov 2017 05:46:36 +0000 (UTC)
commit b61807f005f8a5763fa799ccd016124881fd7d9a
Author: Andres G. Aragoneses <knocte gmail com>
Date: Fri Oct 21 19:47:41 2016 +0800
build: ignore accented chars in `git-contributors` script
Without this, some contributors would be duplicated, such as:
27 Clément Bourgeois
16 Clement Bourgeois
After:
43 Clement Bourgeois
Idea borrowed from:
http://stackoverflow.com/a/10207623/544947
build/git-contributors | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/build/git-contributors b/build/git-contributors
index 8da3561..8ce6640 100755
--- a/build/git-contributors
+++ b/build/git-contributors
@@ -2,6 +2,7 @@
git log --no-merges "$@" | \
grep ^Author: | \
sed 's/ <.*//; s/^Author: //' | \
+ iconv -f utf8 -t ascii//TRANSLIT | \
sort | \
uniq -ic | \
sort -nr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]