|
From: | Dmitry Gutov |
Subject: | Re: vc-modify-change-comment for "modern" backend fix |
Date: | Wed, 18 May 2022 02:20:59 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 |
On 17.05.2022 22:10, Alfred M. Szmidt wrote:
Thanks Eli, and Stefan. Note that maybe you don't want "just the commit message text" because you may want to preserve extra info such as the `Author:`. There is I think a very deep hole -- creation time, author, committer, branch colour, etc, etc, etc. As it is now, modify-change-comment is quite specific in what it wants to do.
The command could return the contents of the log-edit buffer, including the recognized headers, which currently include, for Git,
Author, Date, No-Verify and Sign-Off.There's also "Amend", and you may or may not reuse it to implement this functionality. Depending on whether you intend to support editing of older commits (not just the tip one).
[Prev in Thread] | Current Thread | [Next in Thread] |