gpt4 book ai didi

git - 使用 git send-email 发送电子邮件时如何添加附加文本?

转载 作者:太空狗 更新时间:2023-10-29 12:53:27 24 4
gpt4 key购买 nike

我正在使用 git send-email <patch-name> 发送补丁.

我希望随补丁一起发送的电子邮件除了提交消息外,还可以在顶部添加一些额外的文本。

有什么办法吗?

最佳答案

您可以使用--annotate,然后在补丁的两个---之间添加您的注释,它不会影响补丁本身。

引用:https://kparal.wordpress.com/2011/08/03/git-tip-of-the-day-introduction-text-when-emailing-patches/

例如:

From 7ea3c50fa83950549de11c6834c465bc8f28b52b Mon Sep 17 00:00:00 2001
From: James Laska
Date: Mon, 1 Aug 2011 09:53:16 -0400
Subject: [PATCH] compose_tree - Save the setup.sh script for later debugging

---
This patch is really really important, because otherwise the
world will end in 2012. Please accept it.

tests/compose_tree/compose_tree.sh | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/compose_tree/compose_tree.sh b/tests/compose_tree/compose_tree.sh
index 66ecefd..c2e041d 100755
--- a/tests/compose_tree/compose_tree.sh
+++ b/tests/compose_tree/compose_tree.sh
... (the rest of the patch)

关于git - 使用 git send-email 发送电子邮件时如何添加附加文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8473120/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com