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

Re: [RFC] series headers

From
Theodore Tso <tytso@mit.edu>
Date
Jul 10, 2007, 14:48 UTC
Message-ID
<20070710144808.GA27033@thunk.org>
In-Reply-To
<Pine.LNX.4.64.0707101452250.4047@racer.site>
On Tue, Jul 10, 2007 at 02:56:48PM +0100, Johannes Schindelin wrote:
Show 8 quoted lines
> And what is so wrong with
> 
> [insert before format-patch] $EDITOR my-cover-letter.txt
> 
> [replace $EDITOR 0000-cover-letter.txt] $EDITOR my-cover-letter.txt 
> 	0000-cover-letter.patch
> 
> and paste the changed text?

Nothing is *wrong* with it per-se, but if you have multiple things that you are working on at the same-time, you might not want to keep 0000-cover-letter.patch in your working directory.

The simplest place to put it is in .git/patches/<branch> while I'm working with it using guilt (or the equivalent place in stgit), and if you include it in the series file then it becomes easier to hack it so that git-format-patches will create the cover letter for you. (And ideally, you would be able to use guilt to edit the cover letter using "guilt header -e cover-letter" but that feature hasn't been added yet; should be simple, though.)

Basically, the issue is of handling the cover letter as a first-class object, as opposed to something whic his manually handled via cut-and-paste. A lot of the tools are actually there already if you are using tools like guilt and stgit. So it's basically making a particular workflow a bit more optimized, that's all.

There certainly is nothing *wrong* with manual maintenance of the cover-letter file plus cut-and-paste when you want to update it. Just as there's nothing *wrong* with using git-write-tree instead of git-commit. Just a question of which is more convenient and less error prone. :-)

						- Ted
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 11 in “[RFC] series headers”
  1. Daniel BarkalowJul 10, 2007
  2. Junio C HamanoJul 10, 2007
  3. Theodore TsoJul 10, 2007
  4. Johannes SchindelinJul 10, 2007
  5. Theodore TsoJul 10, 2007
  6. Johannes SchindelinJul 10, 2007
  7. Teach the --cover-letter option to format-patchJohannes Schindelin, Jul 10, 2007
  8. Daniel BarkalowJul 10, 2007
  9. Johannes SchindelinJul 10, 2007
  10. Peter OberndorferJul 24, 2007
  11. Daniel BarkalowJul 24, 2007

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.