From 0df9d22928cd5c5e0a6db7efb7a2480f29124bd5 Mon Sep 17 00:00:00 2001 From: Alexandre Truong Date: Thu, 6 Jun 2024 09:54:15 +0200 Subject: recipe style guide: add recommendation for patches without signature >From discussion [0], the presence of git version signature at the end of patches has been questionned. To avoid a bit more noise, the setting git format.signature is added to the documentation and its use is recommended. [0]: https://lists.openembedded.org/g/openembedded-core/topic/106323318#msg199967 (From yocto-docs rev: 7da39b91a0f20cb7215d51e00c098f3dc13180fd) Signed-off-by: Alexandre Truong Reviewed-by: Yoann Congal Reviewed-by: Michael Opdenacker Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- documentation/contributor-guide/recipe-style-guide.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'documentation') diff --git a/documentation/contributor-guide/recipe-style-guide.rst b/documentation/contributor-guide/recipe-style-guide.rst index 08d8fb4259..142c02db1f 100644 --- a/documentation/contributor-guide/recipe-style-guide.rst +++ b/documentation/contributor-guide/recipe-style-guide.rst @@ -409,3 +409,15 @@ This should be the header of patch that fixes :cve:`2015-8370` in GRUB2:: Upstream-Status: Backport [http://git.savannah.gnu.org/cgit/grub.git/commit/?id=451d80e52d851432e109771bb8febafca7a5f1f2] CVE: CVE-2015-8370 Signed-off-by: Joe Developer + +Patch format +============ + +By default, patches created with ``git format-patch`` have a `Git` version signature at the end. +To avoid having a `Git` signature at the end of generated or updated patches, +you can use `Git` configuration settings:: + + git config --global format.signature "" + +.. note:: + Patches generated or updated by ``devtool`` are created with no signature. -- cgit v1.2.3-54-g00ecf