summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-30 12:45:14 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-03-30 13:17:59 +0200
commitb242d2dec9bad65142fab66180b68a78cdb0f570 (patch)
tree521252b39c46a1e74b8929326f6b906f0d4fe713 /tools
parent75e53df7e3a63a38f4ebccbd01c208394391fc88 (diff)
downloadsystemd-b242d2dec9bad65142fab66180b68a78cdb0f570.tar.gz
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/git-contrib.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/git-contrib.sh b/tools/git-contrib.sh
index 23012a587a..4b680d2802 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