#!/bin/sh for f in `git ls-tree -r --name-only HEAD`; do \ echo "BEGIN_RECORD $f"; \ git blame -l -t -M -C -n -w -p "$f"; \ echo "END_RECORD $f"; \ done | ./test.pl