Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jduan/git-dag
A ruby script that generates a 'dot' file (Git DAG tree) for a given Git repository.
https://github.com/jduan/git-dag
Last synced: 25 days ago
JSON representation
A ruby script that generates a 'dot' file (Git DAG tree) for a given Git repository.
- Host: GitHub
- URL: https://github.com/jduan/git-dag
- Owner: jduan
- Created: 2012-08-05T21:20:56.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-11-13T15:41:16.000Z (almost 12 years ago)
- Last Synced: 2024-09-30T07:00:00.183Z (about 1 month ago)
- Language: Ruby
- Size: 117 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - jduan/git-dag - A ruby script that generates a 'dot' file (Git DAG tree) for a given Git repository. (others)
README
## git-dag
git-dag is a ruby script that generates a DAG tree (in the 'dot' format) for a
given Git repository.## Preprequisite
You need to have Ruby installed. Try [RVM](https://rvm.io) or
[rbenv](http://rbenv.org) if you don't have one installed.You need to have [Graphviz](http://graphviz.org/) installed if you want
to render the DAG visually. You can install it using the package manager
provided by your OS.For instance, if you use Mac OS X and have homebrew installed, you can do:
$ brew install graphviz
## Install
Easy install with RubyGems:$ gem install git-dag
## Usage
To generate a DAG (in the format 'dot') for a Git repository, do$ git-dag > history.dot
Use to 'dot' to draw the DAG:
$ dot -Tsvg history.dot -o history.svg
You can pipe the 2 commands together:
$ git-dag | dot -Tsvg -o history.svg
Note that if it take a good amount of time if your repository has a long history
of commits.Now you can open up 'history.svg' in your browser to see the DAG.
Graphviz supports a lot of other formats, such as jpg, pdf, png, ps2 etc. Please
see [Graphviz](http://graphviz.org/) for more info.