Skip to content
forked from daolis/git-graph

Tool to create a graph from a git history

License

Notifications You must be signed in to change notification settings

wovano/git-graph

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-graph

Tool to create a graph from a git history showing tags, branches, stash nodes, cherry-picks.

Requirements

  • Python3
  • Graphiz (only to convert DOT format to an image)

Create a graph

Run the following inside a git directory to write a graph description (DOT format) to stdout.

./git-graph

On linux you can use the following command to create a graph.ps file

./git-graph | dot -Tps -o graph.ps

Or you can simply (the file extension must be an accepted command line option of the dot utility (see here)

./git-graph -o image.pdf

Example with range

./git-graph -r a51eced..HEAD | dot -Tps -o graph.ps

Parameters

  • -v: to print info (or debug if provided twice) output to stderr
  • -m: show commit messages in nodes
  • -r range: to get a specific range of the repository. See here

Example Graph

alt text

About

Tool to create a graph from a git history

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%