[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120628141310.GL5333@mwanda>
Date: Thu, 28 Jun 2012 17:13:11 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: devel@...verdev.osuosl.org
Cc: linux-kernel@...r.kernel.org
Subject: move_rev.pl: tool for reviewing patches that move functions
We get a lot of patches in staging that move shift functions around
without changing the code. For example:
http://marc.info/?l=linux-driver-devel&m=134075825327894&q=raw
I've written a perl script to help review them. If you take that
example diff then it looks like this:
$ cat patch.txt | diffstat
cb_pcidas.c | 494 ++++++++++++++++++++++++++----------------------------------
1 file changed, 219 insertions(+), 275 deletions(-)
$ cat patch.txt | ./move_rev.pl | diffstat
cb_pcidas.c | 63 ------------------------------------------------------------
1 file changed, 63 deletions(-)
$
63 lines of deleted code is much quicker to review. :)
The script is attached.
regards,
dan carpenter
View attachment "move_rev.pl" of type "text/x-perl" (3499 bytes)
Powered by blists - more mailing lists