Commits to the master git repo are sent via gregkh’s bti, using the following script as the $repo/hooks/post-receive hook:
read oldrev newrev refname
/usr/bin/git rev-list $oldrev...$newrev --no-merges --pretty=format:"%h|%ae|%s" --abbrev-commit | grep -v ^commit |
while read a; do
echo "$short_refname|$a" | cut -f-140 | ~/bin/bti
It may not scale too well, but it’s simple. Suggestions for improvement are welcome.
Unrelatedly, here’s a short video I took of a long train in Bangalore: