Skip to main content

A simple tool for generating git graphs

Project description

Gitdraw

A simple tool for generating git graphs from a set of git commands

Getting Started

Installing

Either clone directly from the repo or install using pip

pip install gitdraw

Running the tests

The project tests are run with pytest automatically in pipelines. To run them manually find the pytest script command in .gitlab-ci.yml and run it from the root of the repository.

pytest:
  stage: Test
  script:
  - <this command>

Running the tool

The tool is run using python3.7. For help text use:

python3.7 -m gitdraw.__main__ -h

It takes a single input file containing a list of git commands and outputs a SVG representation

python3.7 -m gitdraw.__main__ -i infile

The tool currently supports the following commands:

  • git checkout <branch>
  • git commit
  • git branch <branch>
  • git merge <branch>

Built With

See requirements.txt for the full details of external packages. A number are used just for testing so won't be required if you don't intend to run the tests

Examples

There are a number of autogenerated examples that can be viewed here along with their source text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gitdraw, version 1.0.6
Filename, size File type Python version Upload date Hashes
Filename, size gitdraw-1.0.6-py3-none-any.whl (12.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size gitdraw-1.0.6.tar.gz (10.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page