Skip to main content

Generate revision graph like TortoiseGit did for chosen branches

Project description

git-revision-graph

Generate revision graph like TortoiseGit did for chosen branches

To install, use command `pip install git-revision-graph.

Use python -m git_revision_graph --tags '.*' -o graph.svg inside any git repository to generate a diagram which shows the major operation, e.g. such as this repo tags diagram.

This repo

Full help

Run git-revision-graph --help to check full help

usage: git-revision-graph [-h] [--version] [--patterh PATTERH [PATTERH ...]]
                          [--local LOCAL [LOCAL ...]]
                          [--remote REMOTE [REMOTE ...]]
                          [--tags TAGS [TAGS ...]] [--type {wildcard,regex}]
                          [--no-simplify] [--time TIME] [-v] [--output OUTPUT]
                          [repository]

Generate revision graph like TortoiseGit did for chosen branches

example:
    git-revision-graph -p "refs/tags/bugfix*" -r "release/v1.*" --time +20240612 | tred | dot -Tsvg -o graph.svg
        

positional arguments:
  repository            the repository path

options:
  -h, --help            show this help message and exit
  --version
  --patterh PATTERH [PATTERH ...], -p PATTERH [PATTERH ...]
                        refs regex pattern filter
  --local LOCAL [LOCAL ...], -l LOCAL [LOCAL ...]
                        like pattern applied on refs/heads
  --remote REMOTE [REMOTE ...], -r REMOTE [REMOTE ...]
                        like pattern applied on refs/remotes
  --tags TAGS [TAGS ...], -t TAGS [TAGS ...]
                        like pattern applied on refs/tags
  --type {wildcard,regex}
                        the pattern type
  --no-simplify         do not simplify the graph
  --time TIME           filter the date range of the commits, e.g. '--time
                        +20240612' for before the day, or '--time
                        240610,240616' for between the two days
  -v                    Increase logging verbosity (e.g., -v for INFO, -vv for
                        DEBUG)
  --output OUTPUT, -o OUTPUT
                        the output file path, default to be stdout

More complex example

The complex london-git example shows the major structure of london subway system:

LondonGit

Reference

The complex git network in example inspired from london-git

Project details


Download files

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

Source Distribution

git_revision_graph-0.0.6.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

git_revision_graph-0.0.6-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file git_revision_graph-0.0.6.tar.gz.

File metadata

  • Download URL: git_revision_graph-0.0.6.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for git_revision_graph-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b69d191f27610b85a18d1dcdf19c95b70e9750960e2c4032222e5237b5e515c6
MD5 e7f1196196a4b1793e754a1efef23e0b
BLAKE2b-256 03142313fe8636e16f6226fd95ff19b00f4f16268612a233ec97d3d461fb8215

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_revision_graph-0.0.6.tar.gz:

Publisher: publish-to-pypi.yml on chaoqing/git-revision-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file git_revision_graph-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for git_revision_graph-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f265e7443a9e671ac824319b766fedfab03987bc28dae55b4ad813b4c2782e85
MD5 31f59dbfa235cf6f7ad8c93d40878746
BLAKE2b-256 10986cb52450eb13cdaf60985bd7de3ff2b42b9c0211078e3c9cfc65f1fd3b36

See more details on using hashes here.

Provenance

The following attestation bundles were made for git_revision_graph-0.0.6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on chaoqing/git-revision-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page