Permalink
Browse files

Modify summary to make accounts in percent

  • Loading branch information...
1 parent c0d6909 commit 2533baca37d15447dc81c9ed0e48dae9b917ad71 @jnavila jnavila committed Mar 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 summary.rb
View
2 summary.rb
@@ -8,7 +8,7 @@
original_lines=`grep -r -h '^[^[:space:]#]' en/[0]* | grep -v '^Insert'| wc -l`.to_i
Dir.glob("*").each do |dir|
if !File.file?(dir) && !exclude.include?(dir)
- lines = `git diff-tree -r -p --diff-filter=M master:en master:#{dir} | grep '^-[^[:space:]#-]' | wc -l`.strip.to_i
+ lines = `git diff-tree -r -p --diff-filter=M master:en master:#{dir} | grep '^-[^[:space:]#-]' | grep -v '^-Insert' | wc -l`.strip.to_i
last_commit = `git log -1 --no-merges --format="%ar" #{dir}`.chomp
authors = ""
if command == 'authors'

0 comments on commit 2533bac

Please sign in to comment.