From bb3b019696b505a46b1565bae128b5beccf1cf3e Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Thu, 17 Jul 2008 02:17:54 +0200 Subject: [PATCH] gitstats: Added a 'net loc' to 'author -a' This adds a column with the net changes to the result of 'author -a'. --- src/git_stats/author.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/git_stats/author.py b/src/git_stats/author.py index ae838d3..0690196 100644 --- a/src/git_stats/author.py +++ b/src/git_stats/author.py @@ -18,7 +18,8 @@ class Activity: self.id = [] def __str__(self): - return "%4d: %5d+ %5d-" % (self.count, self.added, self.deleted) + return "%4d: %5d+ %5d- %5d~" % \ + (self.count, self.added, self.deleted, self.added-self.deleted) def activityInArea(log): """Parses the specified file containing commit logs. -- 2.11.4.GIT