[klibc] [klibc:master] dash: README.dash: Include "dash:" and upstream commit in patches
klibc-bot for Ben Hutchings
ben at decadent.org.uk
Sat Mar 28 13:18:03 PDT 2020
Commit-ID: 663e807d02dd4a84f386b2da19a2fb10c3b94b7c
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=663e807d02dd4a84f386b2da19a2fb10c3b94b7c
Author: Ben Hutchings <ben at decadent.org.uk>
AuthorDate: Sat, 28 Mar 2020 17:47:36 +0000
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Sat, 28 Mar 2020 19:01:42 +0000
[klibc] dash: README.dash: Include "dash:" and upstream commit in patches
Add an awk command in the pipeline to:
* Insert "dash:" in each commit message subject as well as "[klibc]"
* Insert the hash of the original commit at the top of each message body
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/README.dash | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/usr/dash/README.dash b/usr/dash/README.dash
index 68033809..f2f31e96 100644
--- a/usr/dash/README.dash
+++ b/usr/dash/README.dash
@@ -9,7 +9,14 @@ HOWTO sync branch:
1) Generate mailbox of patches and fix up their paths:
- git format-patch --subject-prefix=klibc -N --stdout <changeset>.. \
+ git format-patch --subject-prefix='' -N --stdout <changeset>.. \
+ | awk '(FNR == 1 || blank) && /^From / { header = 1; hash = $2 }
+ header && /^Subject:/ { sub("^Subject:", "Subject: [klibc] dash:") }
+ { print; blank = /^$/ }
+ header && blank {
+ print "[ dash commit", hash, "]"; print
+ header = 0
+ }' \
| filterdiff --strip 2 --addoldprefix a/usr/dash/ --addnewprefix b/usr/dash/ \
--exclude="*/configure.ac" --exclude="*/ChangeLog" \
--exclude="*/dash.1" --exclude="*/Makefile.am" \
More information about the klibc
mailing list