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

Re: [PATCH v2] contrib: git-cpcover: copy cover letter

From
Denton Liu <liu.denton@gmail.com>
Date
Dec 4, 2019, 06:58 UTC
Message-ID
<20191204065846.GA3386115@generichostname>
In-Reply-To
<20191203201233.661696-1-mst@redhat.com>
Hi Michael,

As others have been talking about in a sibling thread, I'd love to see something like this incorporated into format-patch itself. I considered doing something like this myself but my workflow ended up becoming "good enough" with --cover-from-description that I never bothered to look into it further.

On Tue, Dec 03, 2019 at 03:13:27PM -0500, Michael S. Tsirkin wrote:
Show 20 quoted lines
> My flow looks like this:
> 1. git format-patch -v<n> --cover-letter <params> -o <dir>
> 2. vi <dir>/v<n-1>-0000-cover-letter.patch <dir>/v<n>-0000-cover-letter.patch
> 
> copy subject and blurb, avoiding patchset stats
> 
> 3. add changelog update blurb as appropriate
> 
> 4. git send-email <dir>/v<n>-*
> 
> The following perl script automates step 2 above.  Hacked together
> rather quickly, so I'm only proposing it for contrib for now.  If others
> see the need, we can add docs, tests and move it to git proper.
> 
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> 
> Fixes from v1: support multi-line To/Cc headers.
> 
> Any feedback on this? Interest in taking this into contrib/ for now?

I took a brief look at it and I have one small suggestion. Would it be possible to grab the last Message-Id and use it to generate the In-Reply-To header using this?

Thanks,
Denton
Previous: Michael S. Tsirkin
Message 8 of 8 in “contrib: git-cpcover: copy cover letter”
  1. contrib: git-cpcover: copy cover letterMichael S. Tsirkin, Dec 3, 2019
  2. Jonathan NiederDec 4, 2019
  3. Eric SunshineDec 4, 2019
  4. Junio C HamanoDec 4, 2019
  5. Eric SunshineDec 4, 2019
  6. Junio C HamanoDec 4, 2019
  7. Michael S. TsirkinDec 9, 2019
  8. Denton LiuDec 4, 2019

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.