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

Re: Dubious format-patch options

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2008, 03:01 UTC
Message-ID
<7vtzfyxckm.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LFD.1.10.0806121923400.2949@woody.linux-foundation.org>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 8 quoted lines
> On Thu, 12 Jun 2008, Jon Loeliger wrote:
>> 
>>     $ git format-patch -1 --stdout --color master
>> 
>> But I seriously doubt that we _really_ want to send a
>> patch that has the embedded escape sequences in it:
>
> Hey, you asked for it, you got it. I hope you're not complaining.

Well, having said and heard all that, coming back to our more serious selves...

I think being able to do
    $ git -p format-patch --stdout --color -2 HEAD
makes some sense.  Being able to produce an unusable patch by saying
    $ git format-patch --stat old..

at the first glance is of quite dubious value, but even that would make sense as a good input source for "commit log automailer".

I think I know where Jon is coming from and where he wants to go. While I am somewhat sympathetic to the cause of adding some warning or safety valve to prevent nonsense option combinations from being given, I am not sure we can draw a line to classify options into black and white.

Previous: Linus TorvaldsNext: Jeff King
Message 4 of 5 in “Dubious format-patch options”
  1. Jon LoeligerJun 13, 2008
  2. Junio C HamanoJun 13, 2008
  3. Linus TorvaldsJun 13, 2008
  4. Junio C HamanoJun 13, 2008
  5. Jeff KingJun 13, 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.