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

Re: stgit: editing description of patch

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Oct 5, 2007, 09:16 UTC
Message-ID
<fe4vd1$4s2$1@sea.gmane.org>
In-Reply-To
<20071004173929.GD21717@diana.vm.bytemark.co.uk>

(for whatever reason, gnus decided that it no longer likes the authenticated SMTP server, so I'm trying to post via gmane).

On Thu, 04 Oct 2007 19:39:29 +0200, Karl Hasselström wrote:
Show 12 quoted lines
> On 2007-10-04 12:45:17 -0400, Jon Smirl wrote:
> 
>> Why are the patch name and the short description independent
>> variables? Wouldn't it make more sense to treat these as a single
>> unified item? If I rename the patch it would automatically edit the
>> first line of the description, etc...
> 
> I guess Catalin would have to answer that -- it's "always" been like
> that. But one obvious problem are patches with identical messages --
> just today I created a series of seven patches that all had "debug"
> for a message. Another is that you usually want descriptive commit
> messages, but may want short and easy-to-type patch names.

That's pretty much the case. There are also the historical reasons (quilt does the same) plus the fact the exporting should really generate shorter and simpler file names rather than name with capitals and spaces. I've also seen people writing a single paragraph over several lines without a short description. You wouldn't really want a patch name that long.

Anyway, 'stg series -d' would show the patch name together with the short description.

Show 7 quoted lines
>> When importing a patch from a saved email, stg should strip all the
>> email headers out of the description. I have to manually fix that
>> up.
> 
> Do you do "stg import -M"? That's for importing one or more patches
> contained in an mbox. Without the -M, I think the default is to expect
> plain diff input.

There is also 'stg import -m' for single e-mails rather than mbox. StGIT should be able to cope with attachments as well.

Catalin
Previous: Karl Hasselström
Message 8 of 8 in “stgit: editing description of patch”
  1. Jon SmirlOct 3, 2007
  2. Jon SmirlOct 4, 2007
  3. Karl HasselströmOct 4, 2007
  4. Jon SmirlOct 4, 2007
  5. Karl HasselströmOct 4, 2007
  6. Jon SmirlOct 4, 2007
  7. Karl HasselströmOct 4, 2007
  8. Catalin MarinasOct 5, 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.