Sha256: e726cf306b8f2038939ea7baf232d427566b499a5524fe0c6b465074702a5b6c

Contents?: true

Size: 575 Bytes

Versions: 16

Compression:

Stored size: 575 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 -euo pipefail

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

16 entries across 16 versions & 1 rubygems

Version Path
vedeu-0.8.32 test/support/stats.sh
vedeu-0.8.31 test/support/stats.sh
vedeu-0.8.30 test/support/stats.sh
vedeu-0.8.29 test/support/stats.sh
vedeu-0.8.28 test/support/stats.sh
vedeu-0.8.27 test/support/stats.sh
vedeu-0.8.26 test/support/stats.sh
vedeu-0.8.25 test/support/stats.sh
vedeu-0.8.24 test/support/stats.sh
vedeu-0.8.23 test/support/stats.sh
vedeu-0.8.22 test/support/stats.sh
vedeu-0.8.21 test/support/stats.sh
vedeu-0.8.20 test/support/stats.sh
vedeu-0.8.19 test/support/stats.sh
vedeu-0.8.18 test/support/stats.sh
vedeu-0.8.17 test/support/stats.sh