bdunagan

fill the void - bdunagan

13 Nov 2011
Git Tip: Better 'git log'

A while ago, I followed this blog’s advice and added a little color to ‘git log’. This original ‘git log’ command displays useful tidbits like 7c UUID, relative date, description, tag, and user.

But today, I wanted a bit more: an short absolute date and lines changed. Seeing the number of lines that changed per commit gives a better idea about the magnitude of the changes. Changing the date format was easy; adding the number of lines that changed was harder.

Below is a gist for the Ruby script I wrote. Instructions on setting it up as a Bash alias are embedded in it.

Previous LinkedIn Twitter GitHub Email Next