From b242d2dec9bad65142fab66180b68a78cdb0f570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 30 Mar 2021 12:45:14 +0200 Subject: [PATCH] git-contrib: use non-breaking spaces in names Some people have initials or abbreviated parts in the name and looks strange when a line break occurs in the middle. Let's keep each name in one line. --- tools/git-contrib.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/git-contrib.sh b/tools/git-contrib.sh index 23012a587acc0..4b680d2802583 100755 --- a/tools/git-contrib.sh +++ b/tools/git-contrib.sh @@ -2,6 +2,7 @@ # SPDX-License-Identifier: LGPL-2.1-or-later set -eu -git shortlog --author=noreply@weblate.org --invert-grep -s `git describe --abbrev=0 --match 'v[0-9][0-9][0-9]'`.. | \ - awk '{ $1=""; print $0 "," }' | \ +tag="$(git describe --abbrev=0 --match 'v[0-9][0-9][0-9]')" +git log --pretty=tformat:%aN --author=noreply@weblate.org --invert-grep -s "${tag}.." | \ + sed 's/ / /g; s/--/-/g; s/.*/ \0,/' | sort -u