How to add additional text when sending an email with git send-email?

前端 未结 3 695
陌清茗
陌清茗 2021-02-08 15:55

I am sending patches using git send-email .

I want that the email sent with the patch to have some additional text added at the top, besid

3条回答
  •  礼貌的吻别
    2021-02-08 16:23

    Git 2.18 (Q2 2018) offers an alternative to --annotate or --compose for adding additional text when sending an email with git send-email.

    See commit 04c4a4e (04 May 2018) by Drew DeVault (SirCmpwn).
    Helped-by: Eric Wong (ele828).
    (Merged by Junio C Hamano -- gitster -- in commit 89be19d, 30 May 2018)

    git-send-email: allow re-editing of message

    When shown the email summary, an opportunity is presented for the user to edit the email as if they had specified --annotate.
    This also permits them to edit it multiple times.

    "git send-email" can sometimes offer confirmation dialog "Send this email?" with choices 'Yes', 'No', 'Quit', and 'All'.
    A new action 'Edit' has been added to this dialog's choice.

    As seen in git-send-email.perl:

    # If the user decides they want to make further edits, -1 is returned and the
    # caller is expected to call send_message again after the edits are performed.
    

提交回复
热议问题