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

Re: [RFC] git-format-patch options

From
RARyan Anderson <ryan@michonline.com>
Date
Nov 21, 2005, 19:11 UTC
Message-ID
<43821BE7.5000306@michonline.com>
In-Reply-To
<20051121182737.43012.qmail@web31811.mail.mud.yahoo.com>
Luben Tuikov wrote:
Show 21 quoted lines
> --- Andreas Ericsson <ae@op5.se> wrote:
> 
> 
>>Here's how to automate it.
>>
>>git format-patch $(git rev-list --max-count=2 <commit-ish> | tail -n 
>>1)..<commit-ish>
> 
> 
> I've a similar script, called
> "git-format-commit-patch <commit-ish>" which is slightly
> more involved.
> 
> 
>>Either way, you need to know <commit-ish>, but this format should be 
>>fairly easy to add to git-format-patch. If you do, please
> 
> 
> How about git-format-patch --commit <commit-ish>
> to generate the formatted patch of only what _that_ commit
> introduced? (i.e. <parent>..<commit-ish>)
Doesn't git-format-patch $commit^1..$commit do what you want?
Previous: Luben TuikovNext: Luben Tuikov
Message 6 of 9 in “[RFC] git-format-patch options”
  1. Luben TuikovNov 21, 2005
  2. Andreas EricssonNov 21, 2005
  3. Luben TuikovNov 21, 2005
  4. Andreas EricssonNov 21, 2005
  5. Luben TuikovNov 21, 2005
  6. Ryan AndersonNov 21, 2005
  7. Luben TuikovNov 22, 2005
  8. Junio C HamanoNov 21, 2005
  9. Luben TuikovNov 22, 2005

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.