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.
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:
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b69d191f27610b85a18d1dcdf19c95b70e9750960e2c4032222e5237b5e515c6
|
|
| MD5 |
e7f1196196a4b1793e754a1efef23e0b
|
|
| BLAKE2b-256 |
03142313fe8636e16f6226fd95ff19b00f4f16268612a233ec97d3d461fb8215
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
git_revision_graph-0.0.6.tar.gz -
Subject digest:
b69d191f27610b85a18d1dcdf19c95b70e9750960e2c4032222e5237b5e515c6 - Sigstore transparency entry: 203532834
- Sigstore integration time:
-
Permalink:
chaoqing/git-revision-graph@ea073654749aa5c302265003b9b8abe00efd43cf -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/chaoqing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ea073654749aa5c302265003b9b8abe00efd43cf -
Trigger Event:
release
-
Statement type:
File details
Details for the file git_revision_graph-0.0.6-py3-none-any.whl.
File metadata
- Download URL: git_revision_graph-0.0.6-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f265e7443a9e671ac824319b766fedfab03987bc28dae55b4ad813b4c2782e85
|
|
| MD5 |
31f59dbfa235cf6f7ad8c93d40878746
|
|
| BLAKE2b-256 |
10986cb52450eb13cdaf60985bd7de3ff2b42b9c0211078e3c9cfc65f1fd3b36
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
git_revision_graph-0.0.6-py3-none-any.whl -
Subject digest:
f265e7443a9e671ac824319b766fedfab03987bc28dae55b4ad813b4c2782e85 - Sigstore transparency entry: 203532837
- Sigstore integration time:
-
Permalink:
chaoqing/git-revision-graph@ea073654749aa5c302265003b9b8abe00efd43cf -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/chaoqing
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@ea073654749aa5c302265003b9b8abe00efd43cf -
Trigger Event:
release
-
Statement type: