Skip to content

Commit 61a7572

Browse files
committed
please.sh mention feature: always mention Git versions first
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6d2133a commit 61a7572

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

please.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,6 +2408,19 @@ mention () { # <what, e.g. bug-fix, new-feature> <release-notes-item>
24082408
fi ||
24092409
die "Could not edit release notes\n"
24102410

2411+
# make sure that the Git version is always reported first
2412+
case "$*" in
2413+
'Comes with [Git v'*)
2414+
sed -i -ne '/^### New Features/{
2415+
p;n;
2416+
/^$/{p;n};
2417+
:1;
2418+
/^\* Comes with \[Git v/{G;:2;p;n;b2};
2419+
x;/./{G;x};n;b1;
2420+
}' -e p "$relnotes"
2421+
;;
2422+
esac
2423+
24112424
(cd "$sdk64"/usr/src/build-extra &&
24122425
what_singular="$(echo "$what" |
24132426
sed -e 's/Fixes/Fix/' -e 's/Features/Feature/')" &&

0 commit comments

Comments
 (0)