Permalink
Browse files

added colors

  • Loading branch information...
1 parent 27d1346 commit d725389e7b1427e3ab12ce53a5017ace6ea3f21c @sigmike committed Dec 21, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 git_branch_graph.rb
View
@@ -52,7 +52,11 @@ def remove_grand_parents(tree)
remove_grand_parents(tree)
puts "digraph git {"
+puts " node [colorscheme=paired3 color=1 style=filled]"
tree.each do |branch, parents|
+ if branch == repo.head.name.inspect
+ puts "#{branch} [color=2]"
+ end
puts " #{branch} -> { #{parents.join " "} }"
end
puts "}"

0 comments on commit d725389

Please sign in to comment.