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

Re: [PATCH] format-patch: add --prefix to prepend a prefix to output file names

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jun 9, 2009, 23:14 UTC
Message-ID
<fcaeb9bf0906091614y7392bfa8p20a4e5c3c37a051b@mail.gmail.com>
In-Reply-To
<4A2E576D.704@op5.se>
2009/6/9 Andreas Ericsson <ae@op5.se>:
Show 22 quoted lines
> Nguyễn Thái Ngọc Duy wrote:
>>
>> I use git to manages patches in my Gentoo development. In Gentoo,
>> all ebuilds (another form of RPM spec) corresponding to different
>> versions of the same package are grouped into one directory. So patches
>> for each versions usually have a prefix to separate them from the ones
>> for other versions. With --prefix it comes handy to produce such patches,
>> for example:
>>
>> git format-patch --prefix dbus-1.2.3- HEAD~5
>>
>> will generate patches for dbus-1.2.3 for me, all starting with
>> "dbus-1.2.3-".
>>
>> This might be handy for RPM developers as well.
>>
>
> I'm thinking this could be confused with '--subject-prefix' which was
> given the long option to *not* confuse it with cover-letters and filename
> prefixes. Any chance you could make it --filename-prefix instead? Since
> it already lacks a short option, the extra typing will probably be worth
> it to avoid unnecessary confusion.

I made it --prefix because I see --suffix for file names already. Yes --filename-prefix may be less confusing than plain --prefix.

-- 
Duy
Previous: Andreas EricssonNext: Nguyễn Thái Ngọc Duy
Message 3 of 15 in “format-patch: add --prefix to prepend a prefix to output file names”
  1. format-patch: add --prefix to prepend a prefix to output file namesNguyễn Thái Ngọc Duy, Jun 9, 2009
  2. Andreas EricssonJun 9, 2009
  3. Nguyen Thai Ngoc DuyJun 9, 2009
  4. format-patch: add --filename-prefix to prepend a prefix to output file namesNguyễn Thái Ngọc Duy, Jun 10, 2009
  5. Jakub NarebskiJun 10, 2009
  6. Nguyen Thai Ngoc DuyJun 10, 2009
  7. Junio C HamanoJun 10, 2009
  8. format-patch: add --filename-prefix to prepend a prefix to output file namesNguyễn Thái Ngọc Duy, Jun 14, 2009
  9. Junio C HamanoJun 14, 2009
  10. Stephen BoydJun 14, 2009
  11. Junio C HamanoJun 14, 2009
  12. Stephen BoydJun 14, 2009
  13. Nguyen Thai Ngoc DuyJun 14, 2009
  14. Johannes SixtJun 9, 2009
  15. Nguyen Thai Ngoc DuyJun 9, 2009

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.