Once in a while I see this sort of git commit graph in my gitx window:

git commit graph

Which is beautiful. Then I suddenly had this idea to draw this Taipei MRT route map with git, such that it can be viewed with gitx:

routemapNH.jpg

Possible ? Definitely.

There are many ways to do it, I came up with this approach:

  • Each commit represents a station. To let them easily referable, all commits are tagged after the station name.

  • The first commit is the Taipei Main Station, which is the topological center of the route

  • For each out-going line, create a branch named by its terminal station

The finished git repository is here: Taipei-MRT-In-Git

To see it, do this:

git clone git://github.com/gugod/Taipei-MRT-In-Git.git
cd Taipei-MRT-In-Git
gitx

The program that can build the repository is here: git-build-tmrt-map

One thing that makes it looks less like a route map is, gitx shows the graph line by line. Therefore, I rolled up my own git-graphviz tool to make it look better. Here is the result:

Maybe someone can take the chanllange to draw Tokyo JR route map with git:

JR.png

(Ouch)