[PATCH] docs/zh_CN: add --no-merges to git log example in how-to.rst

2 views
Skip to first unread message

Ben Guo

unread,
Apr 13, 2026, 9:44:48 PMApr 13
to dz...@hust.edu.cn, hust-os-ker...@googlegroups.com
Add --no-merges flag to prevent referencing merge commits in the
through-commit field of translation commit messages.

Signed-off-by: Ben Guo <ben...@openatom.club>
---
Documentation/translations/zh_CN/how-to.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/translations/zh_CN/how-to.rst b/Documentation/translations/zh_CN/how-to.rst
index 7ae5d876588..39ed7054fa3 100644
--- a/Documentation/translations/zh_CN/how-to.rst
+++ b/Documentation/translations/zh_CN/how-to.rst
@@ -257,7 +257,9 @@ Git 和邮箱配置

Update the translation through commit b080e52110ea
("docs: update self-protection __ro_after_init status")
- # 请执行 git log --oneline <您翻译的英文文档路径>,并替换上述内容
+ # 请执行 git log --no-merges --oneline <您翻译的英文文档路径>
+ # 并替换上述内容。注意:应引用实际修改文件内容的 commit,
+ # 而非 merge commit

Signed-off-by: Yanteng Si <si.ya...@linux.dev>
# 如果您前面的步骤正确执行,该行会自动显示,否则请检查 gitconfig 文件
--
2.53.0

Dongliang Mu

unread,
Apr 13, 2026, 9:49:00 PMApr 13
to Ben Guo, hust-os-ker...@googlegroups.com

On 4/14/26 9:44 AM, Ben Guo wrote:
> Add --no-merges flag to prevent referencing merge commits in the
> through-commit field of translation commit messages.
>
> Signed-off-by: Ben Guo <ben...@openatom.club>

Reviewed-by: Dongliang Mu <dz...@hust.edu.cn>

Note that, when you send LKML, please do not attach my tag since this is
only for internal review.

Ben Guo

unread,
Apr 16, 2026, 12:27:01 AMApr 16
to Alex Shi, Yanteng Si, Dongliang Mu, Jonathan Corbet, linu...@vger.kernel.org, linux-...@vger.kernel.org, hust-os-ker...@googlegroups.com
Add --no-merges flag to prevent referencing merge commits in the
through-commit field of translation commit messages.

Signed-off-by: Ben Guo <ben...@openatom.club>
---
Documentation/translations/zh_CN/how-to.rst | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/translations/zh_CN/how-to.rst b/Documentation/translations/zh_CN/how-to.rst
index 7ae5d876588..39ed7054fa3 100644
--- a/Documentation/translations/zh_CN/how-to.rst
+++ b/Documentation/translations/zh_CN/how-to.rst
@@ -257,7 +257,9 @@ Git 和邮箱配置

Update the translation through commit b080e52110ea
("docs: update self-protection __ro_after_init status")
- # 请执行 git log --oneline <您翻译的英文文档路径>,并替换上述内容
+ # 请执行 git log --no-merges --oneline <您翻译的英文文档路径>
+ # 并替换上述内容。注意:应引用实际修改文件内容的 commit,
+ # 而非 merge commit

Signed-off-by: Yanteng Si <si.ya...@linux.dev>
# 如果您前面的步骤正确执行,该行会自动显示,否则请检查 gitconfig 文件
--
2.53.0

Dongliang Mu

unread,
Apr 16, 2026, 12:51:42 AMApr 16
to Ben Guo, Alex Shi, Yanteng Si, Jonathan Corbet, linu...@vger.kernel.org, linux-...@vger.kernel.org, hust-os-ker...@googlegroups.com

On 4/16/26 12:26 PM, Ben Guo wrote:
> Add --no-merges flag to prevent referencing merge commits in the
> through-commit field of translation commit messages.
>
> Signed-off-by: Ben Guo <ben...@openatom.club>
> ---
Reviewed-by: Dongliang Mu <dz...@hust.edu.cn>

Alex Shi

unread,
Apr 19, 2026, 9:32:17 AM (12 days ago) Apr 19
to Ben Guo, Alex Shi, Yanteng Si, Dongliang Mu, Jonathan Corbet, linu...@vger.kernel.org, linux-...@vger.kernel.org, hust-os-ker...@googlegroups.com
Applied thanks!
Reply all
Reply to author
Forward
0 new messages