Skip to content

Commit

Permalink
git-dot: small hack to output graphs in the dot format
Browse files Browse the repository at this point in the history
  • Loading branch information
book committed Nov 12, 2009
1 parent 3dd6669 commit 333bea1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions git-dot
@@ -0,0 +1,8 @@
#!/bin/sh

# create a good looking graph with dot
echo "digraph G {"
git log --pretty=format:"%h %p" $* \
| perl -lna -e 'print qq("$F[0]";), map {qq("$_"->"$F[0]";)} @F[ 1 .. $#F ]'
echo "}"

0 comments on commit 333bea1

Please sign in to comment.