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

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

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 21, 2010, 10:53 UTC
Message-ID
<20100821105351.GC31130@kytes>
In-Reply-To
<20100821103404.GB31130@kytes>
Hi,
Ramkumar Ramachandra writes:
Show 24 quoted lines
> Hi Jakub,
> 
> Jakub Narebski writes:
> > 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.
> 
> Hm, doesn't work on the `pu` Git, but works on `master` -- I'm
> currently bisecting to find the problem. `git log -3` works
> though.
:facepalm:

Scratch out what I just said -- I just realized that `git format-patch HEAD~3` handles merge commits, but `git format-patch -3` does not. `git format-patch -3 HEAD~3` is even more confusing- should we even advertise the `-<n>` option in format-patch?

-- Ram
Previous: Ramkumar RamachandraNext: Johannes Sixt
Message 4 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.