Sha256: c3c67b62cdaffbeaf7a76f255a1ee8b14a826140b965e22b222cc6c3ec868fcb
Contents?: true
Size: 564 Bytes
Versions: 114
Compression:
Stored size: 564 Bytes
Contents
#!/bin/bash # Displays the number of lines of Vedeu application code and the corresponding # number of lines of Vedeu test code per commit. set -e function main { for rev in `revisions`; do echo "`number_of_lines ^lib` `number_of_lines ^test` `commit_description`" done } function revisions { git rev-list --reverse HEAD } function commit_description { git log --oneline -1 $rev } function number_of_lines () { git ls-tree -r $rev | awk '{print $4, $3}' | grep "$1" | grep "\.rb" | awk '{print $2}' | xargs git show | wc -l } main
Version data entries
114 entries across 114 versions & 1 rubygems