[MPlayer-dev-eng] improving the svn commit message generating script

Michael Niedermayer michaelni at gmx.at
Mon Feb 26 11:26:45 CET 2007


Hi

i suggest that we use something like that:
diff -dup in0 in1 >>di; diff -dupwi in0 in1>>di2

and

diffstat di; echo no cosmetics:; diffstat di2; cat di

instead of plain diff -u

-d makes diffs smaller (i think diego has already fixed that, btw why are
changes to the these scripts not shown in public like cvs did?)

-p adds the function names which can sometimes be helpfull

diffstat shows some nice statistics on number of added and deleted lnes

and the diff -dupwi diffstat shows a no cosmetic diffstat which of course
is at the mercy of diff
a indent mplayer.c would show:

 in1 | 5534 +++++++++++++++++++++++++++++---------------------------------------
 1 file changed, 2438 insertions(+), 3096 deletions(-)
no cosmetics:
 in1 | 1816 +++++++++++++++++++++-----------------------------------------------
 1 file changed, 579 insertions(+), 1237 deletions(-)
...

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070226/2b5b0bbc/attachment.pgp>


More information about the MPlayer-dev-eng mailing list