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

Re: diffstat wierdness with 'git format-patch' output

From
Junio C Hamano <junkio@cox.net>
Date
Feb 14, 2006, 06:09 UTC
Message-ID
<7vveviv5d1.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060214055648.GA592@kroah.com>
Greg KH <greg@kroah.com> writes:
> Hm, in looking at it closer, it's probably the last two lines of the
> file, the signature that git format-patch adds to the message:
> 	-- 
> 	1.2.0

If that is the case, it's unfortunate that diffstat is broken and is not properly counting lines to tell which lines are part of the patch and which lines are not.

Have you tried "git apply --stat" instead?
> Any way to suppress these?

Sorry, there is no option to disable that, but the stuff is GPLv2 so you can do whatever ;-).

The string "-- \n" is an established convention to mark the beginning of the signature (or whatever inmaterial stuff that follow the message contents), so changing the marker is pointless -- if we want the option it should be to delete those two lines altogether.

I personally find it useful to see the trend of version of tools people use on the public mailing list, and that was the primary reason it is there.

Have you tried "git apply --stat --summary" instead?
Previous: Greg KHNext: Greg KH
Message 3 of 11 in “diffstat wierdness with 'git format-patch' output”
  1. Greg KHFeb 14, 2006
  2. Greg KHFeb 14, 2006
  3. Junio C HamanoFeb 14, 2006
  4. Greg KHFeb 14, 2006
  5. Junio C HamanoFeb 14, 2006
  6. Greg KHFeb 14, 2006
  7. Greg KHFeb 14, 2006
  8. Greg KHFeb 14, 2006
  9. Junio C HamanoFeb 14, 2006
  10. Greg KHFeb 18, 2006
  11. Fredrik KuivinenFeb 14, 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.