From: Adolf Belka <adolf.belka@ipfire.org>
To: Matthias Fischer <matthias.fischer@ipfire.org>
Cc: development@lists.ipfire.org
Subject: Re: GIT-Question: how do I start a commit with some explanations/comments
Date: Sun, 24 May 2026 12:04:25 +0200 [thread overview]
Message-ID: <3e28cb8a-16af-4ca7-8221-95fb6b56b041@ipfire.org> (raw)
In-Reply-To: <5d4f6ba5-f14c-4034-9a5d-5493a5d334d8@ipfire.org>
Hi Matthias,
On 24/05/2026 10:57, Matthias Fischer wrote:
> Hi,
>
> I'd like to have a problem but I can't find the solution...
>
> Problem:
> How do I create a commit that starts with a comment on the commits that
> will follow immediately afterward? In other words, the first commit
> (numbered 1/2, e.g.) should be a detailed comment, and the actual patch
> (2/2, e.g.) should then follow as a *second* commit.
>
> It might have something to do with 'git commit ...'.
When I have needed to do that I have added --cover-letter to my git format-patch -N -o ....
command and it has then created a series patch with the N commits and added a cover letter at series number 0 which it then allows you to edit and add your message for the patch series.
https://git-scm.com/docs/git-format-patch#Documentation/git-format-patch.txt---cover-letter
I have to say it is a long time now since I did this so you might have to try it a few times to get the patch series you want before running the git send-email command.
Regards,
Adolf.
>
> I saw this here - first came a commit containing some explanations and
> comments, then came the actual patch, but I can't figure it out.
>
> Any help or a hint would be appreciated, 'git commit -- help' didn't
> help... ;-)
>
> Best
> Matthias
>
> P.S.: And I *don't* mean 'git commit --amend'! ;-)
>
next prev parent reply other threads:[~2026-05-24 10:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-24 8:57 Matthias Fischer
2026-05-24 10:04 ` Adolf Belka [this message]
2026-05-24 11:51 ` Matthias Fischer
2026-06-16 11:51 ` Matthias Fischer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3e28cb8a-16af-4ca7-8221-95fb6b56b041@ipfire.org \
--to=adolf.belka@ipfire.org \
--cc=development@lists.ipfire.org \
--cc=matthias.fischer@ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox