The previous fix only helps to restore release automation, but the
generated Linux upstream patch contains wrong formatted commit links. This
patch enhances the previous fix by splitting commit name from full commit
ID. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Following error can be seen in linuxize process:
error: short SHA1 07630ad9 is ambiguous.
error: short SHA1 07630ad9 is ambiguous.
fatal: ambiguous argument '07630ad9': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Fixing this by stop cutting commit IDs into 8-digits.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Several issues were found in recent cygwin/ubuntu distros:
1. Newer git implements "-c" with different meaning, removes it;
2. "tempfile" is mostly debian specific command, replaces it with
"mktemp -u", the latter is more portable.
Singed-off-by: Lv Zheng <lv.zheng@intel.com>
It is detected by Paul that the generated patch contains Data instead of
Date. Also we need "Fixed-by" and "Original-by" keywords for SOB blocks.
Reported-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This patch adds support to add ACPICA upstream Commit ID/Author in the
generated linuxized patches. This format follows Linux stable material
format. The modifications include:
1. distiguish COMMITTER, AUTHOR, MAINTAINER:
1. COMMITTER is automatically extracted using "git config --get";
2. AUTHOR is automatically extracted using "git log --format=%aN <%aE>";
3. MAINTAINER is fixed in make-patches.sh, currently it is
"Bob Moore <robert.moore@intel.com>".
2. add AUTHOR and COMMIT ID information to form the ACPICA release patch
header.
3. automatically correct "Robert Moore <Robert.Moore@intel.com>" to
"Bob Moore <bob.moore@intel.com>".
4. automatically remove last empty lines in the patch description.
5. automatically append unique Signed-off-by for AUTHOR, NAINTAINER and
COMMITTER.
6. automatically add commit URL before SOBs and add "-l" option to be ready
for changing the host of the repo.
7. fix the issue that the default "commit ID" for gen-patch.sh is not
implemented.
8. distiguish upstream generation and local generation using "-u" option.
The generated patch format with upstream commit ID is ACKed by the Linux
ACPI maintainer. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This change add support to invoke necessary conversions on patch
descriptions in the release process so that human intervention can be reduced.
After applying, data types/structures and mixed case words will be
converted. It reduces human intervention greatly but we still need to
check the URL address fields (From/Signed-off-by/Buglink/Reported-by/
Tested-by/Original-by/etc.) after conversion as there are low
possibilities that they are matched to the target conversion types.
Lv Zheng.