Some history improvements, I hope.

Mostly lifted from http://briancarper.net/blog/248/

I hope this -n works better than -r.