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

Re: git-format-patch builtin isn't using git-cherry?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 23, 2006, 12:05 UTC
Message-ID
<Pine.LNX.4.63.0606231357420.29667@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<46a038f90606221732k6d93bcceic2761081d7a7c72b@mail.gmail.com>
Hi,
On Fri, 23 Jun 2006, Martin Langhoff wrote:
> Reading cmd_format_patch() in builtin-log.c, it seems to have lost that 
> magic that made it so useful... :( Can a kind soul that speaks C 
> fluently help me out here?

My fault. But note that it is much faster now, too! I think I can trick it back into doing something like the old script, but I'll do that only with an option (in order to not slow down the now-common case). And it will take a while. So if anybody wants to give it a try...

Basically, it will involve the following recipe:
	- add a DIFF_FORMAT_PATCH_ID
	- calculate _all_ the patch ids in upstream since branch point
	- in cmd_format_patch, in the get_revision() loop, skip those
	  commits which have the same patch id

Ciao, Dscho

Previous: Martin LanghoffNext: Timo Hirvonen
Message 2 of 5 in “git-format-patch builtin isn't using git-cherry?”
  1. Martin LanghoffJun 23, 2006
  2. Johannes SchindelinJun 23, 2006
  3. Timo HirvonenJun 23, 2006
  4. Johannes SchindelinJun 23, 2006
  5. diff: add diff_flush_patch_id()Johannes Schindelin, Jun 23, 2006

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.