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

Re: [PATCH] format-patch: show 0/1 and 1/1 for singleton patch with cover letter

From
Jacob Keller <jacob.keller@gmail.com>
Date
Aug 23, 2016, 21:06 UTC
Message-ID
<CA+P7+xp1ipo1dDT+f4GF76+EY=vGx2kEqOsy0jdgCmzA=Ud1eQ@mail.gmail.com>
In-Reply-To
<xmqq37lvxx5o.fsf@gitster.mtv.corp.google.com>
On Tue, Aug 23, 2016 at 9:33 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
> Jacob Keller <jacob.e.keller@intel.com> writes:
>
>> From: Jacob Keller <jacob.keller@gmail.com>
>>
>> Change the default behavior of git-format-patch to generate numbered
>> sequence of 0/1 and 1/1 when generating both a cover-letter and a single
>> patch. This standardizes the cover letter to have 0/N which helps
>> distinguish the cover letter from the patch itself. Since the behavior
>> is easily changed via configuration as well as the use of -n and -N this
>> should be acceptable default behavior.
>>
>> Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
>> ---
>
> This obviously changes the behaviour, but I do not think of a reason
> why this change is a bad idea.
>

Yes. The basic idea is "number all files outputted if we generate more than 1 file" Since a cover letter is a separate file, we number 0/1 and 1/1.

Thanks, Jake

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “format-patch: show 0/1 and 1/1 for singleton patch with cover letter”
  1. format-patch: show 0/1 and 1/1 for singleton patch with cover letterJacob Keller, Aug 19, 2016
  2. Junio C HamanoAug 23, 2016
  3. Jacob KellerAug 23, 2016
  4. Junio C HamanoAug 23, 2016
  5. Jacob KellerAug 23, 2016

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.