Skip to content

Commit b3b33fa

Browse files
yuwatabluca
authored andcommitted
contrib: include co-authors to the contributor list of NEWS
Closes #30261.
1 parent 79bad07 commit b3b33fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/git-contrib.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
set -eu
44

55
tag="$(git describe --abbrev=0 --match 'v[0-9][0-9][0-9]')"
6-
git log --pretty=tformat:%aN -s "${tag}.." |
6+
(
7+
# authors
8+
git log --pretty=tformat:%aN -s "${tag}.."
9+
# Co-authors (drop empty line and mail addresses)
10+
git log --pretty='tformat:%(trailers:key=Co-authored-by,valueonly)' -s "${tag}.." | sed -e '/^[[:space:]]*$/ d' | sed -e 's/ <.*@.*>$//'
11+
) |
712
813
sed 's/ / /g; s/--/-/g; s/.*/\0,/' |
914
sort -u | tr '\n' ' ' | sed -e "s/^/Contributions from: /g" -e "s/,\s*$/\n/g" | fold -w 72 -s |

0 commit comments

Comments
 (0)