5 echo "digraph lattice {"
7 shape
="shape=Mrecord, style=filled,"
8 git rev-list
--pretty=format
:"%H %h|%an|%s" "$@" |
9 sed "s/[\"\{\}()<>]/\\\\&/g" |
10 sed -n "s/^\([0-9a-f]\{40\}\) \(.*\)$/n\1 [$shape label=\"{\2}\"]/p"
12 git rev-list
--parents "$@" |
13 while read commit parents
17 echo "n$commit -> n$p"