git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 0/1] Extract only the message log body from git commit.

From
Pablo Sabater <pabloosabaterr@gmail.com>
Date
Jul 22, 2026, 12:38 UTC
Message-ID
<DK53TFGRDS4W.3SYPSLD4HJWIV@gmail.com>
In-Reply-To
<20260722083836.744338-1-hardikxk@gmail.com>
On Wed Jul 22, 2026 at 10:38 AM CEST, hardikxk wrote:
>
> The patch fixes the `extractLogMessageFromGitCommit` function to skip all the metada of the commit object and only return back the message body.
nit: Let's wrap this at ~72 columns.
>
> Previously the function would return the entire data of the objects
> including authors tree and SHAs. This patch fixes that to skip over all
> that and just return the body of the log message.

This repeats what the commit message already says. For a single-patch series a cover letter is usually not needed.

Documentation/MyFirstContribution [1] notes that the commit message should already explain the change at a high level, and that any extra context can go below the '---' line instead. I would drop this cover letter unless there's something else to say.

Show 9 quoted lines
>
> hardikxk (1):
>   Extract only the message body from git commit.
>
>  git-p4.py | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)
>
>
> base-commit: 48bbf81c29ca9a4479ec7850fe206518682cdb2f
[1]: https://github.com/git/git/blob/master/Documentation/MyFirstContribution.adoc#bonus-chapter-one-patch-changes

Regards, Pablo

Previous: Hardik Kumar
Message 7 of 7 in “Extract only the message log body from git commit.”
  1. 0/1 Extract only the message log body from git commit.hardikxk, Jul 22, 2026
  2. 1/1 Extract only the message body from git commit.hardikxk, Jul 22, 2026
  3. Pablo SabaterJul 22, 2026
  4. Hardik KumarJul 22, 2026
  5. Junio C HamanoJul 22, 2026
  6. Hardik KumarJul 23, 2026
  7. Pablo SabaterJul 22, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.