Skip to content

Instantly share code, notes, and snippets.

View erichs's full-sized avatar

Erich Smith erichs

View GitHub Profile
@erichs
erichs / ZOMGLOG.rb
Created March 17, 2012 01:16
customized omglog, with thanks to Ben Hoskings
#!/usr/bin/env ruby
# coding: utf-8
require 'rb-fsevent'
CLEAR = "\n----\n"
YELLOW, BLUE, GREY, HIGHLIGHT = '0;33', '0;34', '0;90', '1;30;47'
SHORTEST_MESSAGE = 12
LOG_CMD = %{git log --pretty=format':%C(yellow)%h%Creset %s'}
LOG_REGEX = /(.*)\u0002(.*)\u0003\u0002(.*)\u0003\u0002(.*)\u0003\u0002(.*)\u0003/
HEAD_CMD = %{git log -1 --pretty='%Cred%d%Creset'}