Skip to contentSkip to conversation

How to create patch statistics?

DISCUSSION Mark Underwood 3 participants 4 messages Sep 2, 2005

lore
Share & tools
lore
#0 lore raw

Sorry to ask such a n00b question, but how do you create the patch statistics that many people show at the top of a patch set? I couldn’t see it the the SubmittingPatches doc and google didn’t help (or I don’t know what to look for ;)

Cheers,

Mark

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com

#1 lore raw
Quoted 5 lines · Mark Underwood

Sorry to ask such a n00b question, but how do you create the patch statistics that many people show at the top of a patch set? I couldn’t see it the the SubmittingPatches doc and google didn’t help (or I don’t know what to look for ;)

use 'diffstat'

most distros have a package for it.
it's home is here (is this current?):
http://invisible-island.net/diffstat/

Signature · 1 line
~Randy
#2 lore raw
In reply to Mark Underwood
Quoted 5 lines · Mark Underwood

Sorry to ask such a n00b question, but how do you create the patch statistics that many people show at the top of a patch set? I couldn’t see it the the SubmittingPatches doc and google didn’t help (or I don’t know what to look for ;)

diffstat -p1 -w72 /path/to/patch

Quoted 3 lines

Cheers,

Mark

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#3 lore raw

Thanks for all your quick responses.

Cheers,
Mark

Quoted 10 lines · --- Adrian Bunk
Quoted 2 lines · Mark Underwood

Sorry to ask such a n00b question, but how do you create the patch statistics that many people show

at

Quoted 3 lines

the top of a patch set? I couldn’t see it the the SubmittingPatches doc and google didn’t help (or I don’t know what to look for ;)

Quoted 20 lines

diffstat -p1 -w72 /path/to/patch

Quoted 3 lines

Cheers,

Mark

cu
Adrian

Signature · 7 lines
       "Is there not promise of rain?" Ling Tan
asked suddenly out
        of the darkness. There had been need of rain
for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck
- Dragon Seed

___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com