Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git percentage of authorship

git ls-tree -r HEAD|sed -re 's/^.{53}//'|while read filename; do file "$filename"; done|grep -E ': .*text'|sed -r -e 's/: .*//'|while read filename; do git blame -w "$filename"; done|sed -r -e 's/.*((.*)[0-9]{4}-[0-9]{2}-[0-9]{2} .*/1/' -e 's/ +$//'|sort|uniq -c
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #percentage #authorship
ADD COMMENT
Topic
Name
4+4 =