Parse git's diff stat summary more flexibly.
commit464bee6a11c628dc27198db611dd33f2bf446b44
authorAlexander Strasser <eclipse7@gmx.net>
Mon, 21 May 2012 12:36:29 +0000 (21 14:36 +0200)
committerHeikki Hokkanen <hoxu@users.sf.net>
Mon, 28 May 2012 18:27:40 +0000 (28 21:27 +0300)
tree6d15ee8b8de81465634dd27d644755f2191c097a
parent4cce497e965eb563a8d13bcb2f452efed44624b3
Parse git's diff stat summary more flexibly.

Git versions with commit 7f814632f5d4d7af9f4225ece6039dbc44e03079 print the
stat summary output slightly different. There were two changes that affect
GitStats:

a) Singular forms of files/insertions/deletions may be used
b) The number of counts is now variable ranging from 1 to 3:
   1: only files changed if file count is 0
   2: if either insertions or deletions are 0 (not if both are)
   3: where files,insertions and deletions are >0
          or both insertions and deletions are  0

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
gitstats