2017-12-24 09:53:20 +03:00
#!/bin/sh
2021-01-27 15:37:10 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-12-24 09:53:20 +03:00
set -eu
2017-04-15 07:16:23 +03:00
2021-03-30 13:45:14 +03:00
tag = " $( git describe --abbrev= 0 --match 'v[0-9][0-9][0-9]' ) "
2023-11-30 05:55:27 +03:00
(
# authors
git log --pretty= tformat:%aN -s " ${ tag } .. "
# Co-authors (drop empty line and mail addresses)
git log --pretty= 'tformat:%(trailers:key=Co-authored-by,valueonly)' -s " ${ tag } .. " | sed -e '/^[[:space:]]*$/ d' | sed -e 's/ <.*@.*>$//'
) |
2022-03-29 20:42:01 +03:00
grep -v noreply@weblate.org |
git-contrib: copypaste-friendly output
Format output in a manner that can be copypasted as-is to NEWS.
That is, with 8 spaces indentation and wrapped at 80 columns.
Before:
$ tools/git-contrib.sh
Ben Stockett,
Carl Lei,
Frantisek Sumsal,
Gibeom Gwon,
Hugo Osvaldo Barrera,
James Hilliard,
Jan Palus,
Lennart Poettering,
Luca Boccassi,
Luca BRUNO,
Mike Gilbert,
nassir90,
nl6720,
Raul Tambre,
Yegor Alexeyev,
Yu Watanabe,
Zbigniew Jędrzejewski-Szmek,
After:
Contributions from: Ben Stockett, Carl Lei, Frantisek Sumsal,
Gibeom Gwon, Hugo Osvaldo Barrera, James Hilliard, Jan Palus,
Lennart Poettering, Luca Boccassi, Luca BRUNO, Mike Gilbert,
nassir90, nl6720, Raul Tambre, Yegor Alexeyev, Yu Watanabe,
Zbigniew Jędrzejewski-Szmek
2021-07-17 19:49:20 +03:00
sed 's/ / /g; s/--/-/g; s/.*/\0,/' |
2022-03-29 20:42:01 +03:00
sort -u | tr '\n' ' ' | sed -e "s/^/Contributions from: /g" -e " s/,\s* $/\n/g " | fold -w 72 -s |
git-contrib: copypaste-friendly output
Format output in a manner that can be copypasted as-is to NEWS.
That is, with 8 spaces indentation and wrapped at 80 columns.
Before:
$ tools/git-contrib.sh
Ben Stockett,
Carl Lei,
Frantisek Sumsal,
Gibeom Gwon,
Hugo Osvaldo Barrera,
James Hilliard,
Jan Palus,
Lennart Poettering,
Luca Boccassi,
Luca BRUNO,
Mike Gilbert,
nassir90,
nl6720,
Raul Tambre,
Yegor Alexeyev,
Yu Watanabe,
Zbigniew Jędrzejewski-Szmek,
After:
Contributions from: Ben Stockett, Carl Lei, Frantisek Sumsal,
Gibeom Gwon, Hugo Osvaldo Barrera, James Hilliard, Jan Palus,
Lennart Poettering, Luca Boccassi, Luca BRUNO, Mike Gilbert,
nassir90, nl6720, Raul Tambre, Yegor Alexeyev, Yu Watanabe,
Zbigniew Jędrzejewski-Szmek
2021-07-17 19:49:20 +03:00
sed -e "s/^/ /g" -e " s/\s* $//g "