[PATCH 1/1] doc: add author name on cc to git fixline alias
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sun Jun 12 13:40:07 CEST 2022
We should add both the author name and the author email address to
the Cc: line of a blamed patch.
Fixes: f9ef083c6cfe ("doc: add author on cc to git fixline alias")
Cc: Harry van Haaren <harry.van.haaren at intel.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
doc/guides/contributing/patches.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/guides/contributing/patches.rst b/doc/guides/contributing/patches.rst
index bebcaf3925..aad2429e58 100644
--- a/doc/guides/contributing/patches.rst
+++ b/doc/guides/contributing/patches.rst
@@ -260,7 +260,7 @@ Here are some guidelines for the body of a commit message:
You can generate the required lines using the following git alias, which prints
the commit SHA and the author of the original code::
- git config alias.fixline "log -1 --abbrev=12 --format='Fixes: %h (\"%s\")%nCc: %ae'"
+ git config alias.fixline "log -1 --abbrev=12 --format='Fixes: %h (\"%s\")%nCc: %an <%ae>'"
The output of ``git fixline <SHA>`` must then be added to the commit message::
--
2.36.1
More information about the dev
mailing list