lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>  I didn't find a utility to count the added/modded/deleted lines, as
>  listed on the Lua Wiki PowerPatches page.

<...>

I usually use 'git diff --stat' for this -- quite convenient and works
even outside of Git [1] repo. It prints someting like this:

 path/file1.lua                |   62 +++++
 file2.lua                         |  260 +++++++++++++++++++-
 file3.lua                         |   63 +++---
 3 files changed, 350 insertions(+), 35 deletions(-)

The --shortstat option displays last line only.

Your tool have one advantage though (aside from being written in Lua)
-- it shows "modified" count. Also it have to be run on actual
sources, not on patch file. :-)

[1] Git -- http://git.or.cz

HTH,
Alexander.