1
0
mirror of https://git.code.sf.net/p/openocd/code synced 2024-11-24 01:16:27 +00:00
openocd/tools
Antonio Borneo 8a37230226 checkpatch: exclude gerrit's Change-Id line from commit description
Checkpatch rejects patches that have empty commit description and
logs them with:
	WARNING:COMMIT_MESSAGE: Missing commit description - Add an appropriate one
But if the patch has a gerrit's Change-Id line placed before the
line Signed-off-by, then checkpatch considers the Change-Id line
as a valid commit description text.

Use the Change-Id tag as a marker of the end of the commit message,
thus not counting its line as part of the commit description.

This patch is not relevant for the Linux kernel development process
as gerrit is not involved and the Change-Id tag is rejected. But
other projects, like OpenOCD, base the development on gerrit and
reuse kernel's checkpatch with flag '--ignore GERRIT_CHANGE_ID'.

This patch has been refused [1] in Linux upstream because it has
not been considered relevant for that project.
Let's take it as another add-on in OpenOCD checkpatch.

Change-Id: I3b55b8fffa07ce67177c108e7c9554ca46674246
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Link: [1] https://lore.kernel.org/lkml/20230410100255.16755-1-borneo.antonio@gmail.com/
Reviewed-on: https://review.openocd.org/c/openocd/+/8539
Tested-by: jenkins
2024-11-16 14:25:35 +00:00
..
release coding style: tools: remove empty lines at end of text files 2020-02-24 10:31:06 +00:00
rlink_make_speed_table update files to correct FSF address 2013-06-05 19:52:42 +00:00
scripts checkpatch: exclude gerrit's Change-Id line from commit description 2024-11-16 14:25:35 +00:00
st7_dtc_as coding style: tools: remove empty lines at end of text files 2020-02-24 10:31:06 +00:00
checkpatch.sh checkpatch: adapt shell script to the tool's new version 2022-09-18 08:20:08 +00:00
disassemble_inc.sh tools: add disassembler helper for files .inc 2023-01-15 15:06:56 +00:00
initial.sh gerrit url: update the gerrit server address to https://review.openocd.org 2021-09-18 15:21:02 +00:00
logger.pl Fix logger.pl script to avoid spurious empty line in some cases. 2009-06-30 05:33:17 +00:00
release.sh tools: release.sh: produce only SHA256 hashes 2018-01-13 08:41:23 +00:00
uncrustify1.sh Add uncrustify config file and helper script 2009-02-03 04:27:48 +00:00