Sha256: 107705daf42509beead58df652c64d56856c947211982297d05f2da6406fedf7

Contents?: true

Size: 435 Bytes

Versions: 102

Compression:

Stored size: 435 Bytes

Contents

#!/bin/bash

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

102 entries across 102 versions & 1 rubygems

Version Path
vedeu-0.0.38 test/stats.sh
vedeu-0.0.37 test/stats.sh