Skip to contentSkip to conversation

cg-mkpatch: Show diffstat before the patch

PATCH In review Jonas Fonseca 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cg-mkpatch: Show diffstat before the patch

Show diffstat before the patch.

---
commit a738ed98e4557877f8bcd3b992aa55579b22b9d1 tree 2447d3a399200c8f736344822969f88f675612dd parent ed095b1a965517f1674b812a9978c60eb907e192 author Jonas Fonseca <[email protected]> 1114554627 +0200 committer Jonas Fonseca <[email protected]> 1114554627 +0200

 cg-mkpatch |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)
cg-mkpatch (mode:100755 sha1:25c67a29296730daeac00e43fd4c18cf914a1c87) renamed from cg-mkpatch (mode:100755 sha1:5ba423cbbb3e5f72cd7fb74f2873d49b60557f12) +4 -1
Index: cg-mkpatch
===================================================================
@@ -23,7 +23,10 @@
 		echo $line >>$header
 	done
 	echo
-	cg-diff -p -r $id
+	cg-diff -p -r $id > $header
+	cat $header | diffstat
+	echo
+	cat $header
 	rm $header
 }
 
Signature · 1 line
Jonas Fonseca
#1 lore raw

Dear diary, on Wed, Apr 27, 2005 at 12:58:55AM CEST, I got a letter where Jonas Fonseca <[email protected]> told me that...

Quoted 3 lines

Show diffstat before the patch.

I think you should first check by which(1) or something whether you have diffstat. Piling up dependencies like this is pretty annoying.

Thanks,

Signature · 3 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
#3 lore raw

Dear diary, on Thu, Apr 28, 2005 at 02:07:02AM CEST, I got a letter where "YOSHIFUJI Hideaki / ?$B5HF#1QL@" <[email protected]> told me that...

Quoted 7 lines

In article <[email protected]> (at Wed, 27 Apr 2005 00:58:55 +0200), Jonas Fonseca <[email protected]> says:

Quoted 1 line

Show diffstat before the patch.

We do not always need to generate diffstat. Please add -s option or something to prepend diffstat. Thanks.

Actually, I've been thinking about something like -s, but as in "short", which would skip this --- part altogether.

Signature · 3 lines
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor