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

Re: [PATCH] format-patch: Update the `-3` example

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 21, 2010, 10:23 UTC
Message-ID
<m3sk28nu24.fsf@localhost.localdomain>
In-Reply-To
<1282382819-25097-1-git-send-email-artagnon@gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 20 quoted lines
> In the EXAMPLES section, `git-format-patch -3` doesn't work
> anymore. Update it to read `git format-patch HEAD~3`. The example was
> introduced in 7c49628 and had not been updated since.
> 
> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
> ---
>  Documentation/git-format-patch.txt |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
> index 4b3f5ba..2a44472 100644
> --- a/Documentation/git-format-patch.txt
> +++ b/Documentation/git-format-patch.txt
> @@ -271,7 +271,7 @@ use it only when you know the recipient uses git to apply your patch.
>  as e-mailable patches:
>  +
>  ------------
> -$ git format-patch -3
> +$ git format-patch HEAD~3
>  ------------
Works for me:
  5031:[gitweb/split@git]# git format-patch -3
  0001-gitweb-Prepare-for-splitting-gitweb.txt
  0002-gitweb-Create-Gitweb-Git-module.txt
  5034:[gitweb/split@git]# git version
  git version 1.7.2.1
The -3 is git-log option:
  -<n>   Limits the number of commits to show.
and also git-format-patch option:
  -<n>   Limits the number of patches to prepare.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 2 of 7 in “format-patch: Update the `-3` example”
  1. format-patch: Update the `-3` exampleRamkumar Ramachandra, Aug 21, 2010
  2. Jakub NarebskiAug 21, 2010
  3. Ramkumar RamachandraAug 21, 2010
  4. Ramkumar RamachandraAug 21, 2010
  5. Johannes SixtAug 21, 2010
  6. Jakub NarebskiAug 21, 2010
  7. Ramkumar RamachandraAug 21, 2010

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.