]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
git-contrib: use non-breaking spaces in names
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Mar 2021 10:45:14 +0000 (12:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Mar 2021 11:17:59 +0000 (13:17 +0200)
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

index 23012a587acc0ea5b1f39043be35e5ff5c41ba29..4b680d28025837cee36ccdc6bc786017eba0a75d 100755 (executable)
@@ -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