Git_branch_graph is a project mainly written in Ruby, it's free.
Generates a graphviz compatible output to display branch hierarchy of a git repository
ruby git_branch_graph.rb /path/to/work/tree | dot -Tpng /dev/stdin >graph.png