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

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

From
Greg KH <greg@kroah.com>
Date
Feb 14, 2006, 06:44 UTC
Message-ID
<20060214064435.GA19831@kroah.com>
In-Reply-To
<7vlkwev41k.fsf@assigned-by-dhcp.cox.net>
On Mon, Feb 13, 2006 at 10:37:59PM -0800, Junio C Hamano wrote:
Show 8 quoted lines
> Greg KH <greg@kroah.com> writes:
> 
> >> Have you tried "git apply --stat" instead?
> >
> > How would that work after I've allready applied the patches to a branch?
> 
> Sorry I was unclear.  By "instead", I meant "instead of running
> diffstat -p1".
That doesn't give me a summary of all of the changes I made to the tree:
$ git apply --stat *.txt
 drivers/hwmon/vt8231.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
 drivers/hwmon/w83781d.c |   43 +++++++++++++++++++++++++------------------
 1 files changed, 25 insertions(+), 18 deletions(-)
 Documentation/hwmon/w83627hf |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
 drivers/hwmon/it87.c         |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
 drivers/i2c/busses/i2c-isa.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
Instead of:
 Documentation/hwmon/w83627hf |    4 ++++
 drivers/hwmon/it87.c         |    3 ++-
 drivers/hwmon/vt8231.c       |    8 ++++----
 drivers/hwmon/w83781d.c      |   43 +++++++++++++++++++++++++------------------
 drivers/i2c/busses/i2c-isa.c |   12 ------------
 5 files changed, 35 insertions(+), 35 deletions(-)

Which is what I need to put into a "please pull from this tree" email message.

thanks,
greg k-h
Previous: Junio C HamanoNext: Greg KH
Message 6 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.