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

Re: [PATCH] git-format-patch(1)- add note about creating patch for single commit

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 19, 2008, 05:33 UTC
Message-ID
<7vwsg587y7.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<449c10960810182226t5e2ae1ay4b53656a7cac4606@mail.gmail.com>
"Dan McGee" <dpmcgee@gmail.com> writes:
Show 17 quoted lines
> On Sun, Oct 19, 2008 at 12:21 AM, Junio C Hamano <gitster@pobox.com> wrote:
>
>> Heh, a more natural way to say that is:
>>
>>        git format-patch -1 $that_one
>>
>> That uses the first option described in the documentation:
>>
>>        -<n>::
>>                Limits the number of patches to prepare.
>
> Wow, had no idea about that option. :)
>
> Given that I didn't even notice this option when I did go to the
> manpage, what if my above change was instead reworked a bit:
>>> +latter case.  If you want to format only a single commit, say "git
>>> +format-patch -1 <commit>" .

I thought about it, but saw "formatting three commits" example in the manpage, and stopped there ;-)

Previous: Dan McGee
Message 4 of 4 in “git-format-patch(1)- add note about creating patch for single commit”
  1. git-format-patch(1)- add note about creating patch for single commitDan McGee, Oct 19, 2008
  2. Junio C HamanoOct 19, 2008
  3. Dan McGeeOct 19, 2008
  4. Junio C HamanoOct 19, 2008

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.