Skip to content
Turning ASCII art DAGs into PNGs since 2012
Find file
Latest commit 5de6265 @aroben Parse asterisks as nodes
This might need some refinement in order to satisfy #18, since sometimes
asterisks are used to represent "more history happened here, but we
don't care what exactly".


AsciiDag is a script that converts ASCII art of directed acyclic graphs (DAGs), typically representing the history of a Git repository, into pretty pictures.

I.e., it turns this:

       A---B---C topic
 D---E---F---G master

…into this:



Given a graph.txt file that contains an ASCII DAG:

$ asciidag graph.txt graph.png


AsciiDag's Git repo is available on GitHub, and can be browsed at:

and cloned with:

git clone git://

Build Status


If you'd like to hack on AsciiDag, follow these instructions:

  1. Fork the project to your own account
  2. Clone down your fork
  3. Create a thoughtfully named topic branch to contain your change
  4. Hack away
  5. Add tests and make sure everything still passes by running rake
  6. If you are adding new functionality, document it in
  7. Do not change the version number, I will do that on my end
  8. If necessary, rebase your commits into logical chunks, without errors
  9. Push the branch up to GitHub
  10. Send a pull request for your branch


Copyright © 2012 Adam Roben. See the LICENSE file for details.

Something went wrong with that request. Please try again.