bash -c echo "INSTRUMENT: cloc 2.10 --force-lang=C (transfer standard, calibrated this session" echo " against hand-counted reference; agrees on both fixtures)" echo "UNIT: LINE, defined in docs/experiments/instruments/UNITS.md" echo "FILE: lang/el-compiler/src/codegen.el" echo printf "%-11s %-19s %6s %6s %8s %6s\n" commit date blank comment code total git log --format="%H %ad" --date=short --reverse -- lang/el-compiler/src/codegen.el | while read sha date; do blob=$(git show "$sha:lang/el-compiler/src/codegen.el" 2>/dev/null) || continue [ -z "$blob" ] && continue t=$(mktemp /tmp/cg-XXXXXX.c); printf "%s\n" "$blob" > "$t" row=$(cloc --force-lang=C --quiet --csv "$t" 2>/dev/null | tail -1) b=$(echo "$row"|cut -d, -f3); c=$(echo "$row"|cut -d, -f4); k=$(echo "$row"|cut -d, -f5) [ -n "$k" ] && printf "%-11s %-19s %6s %6s %8s %6s\n" "${sha:0:9}" "$date" "$b" "$c" "$k" "$((b+c+k))" rm -f "$t" done