Git Railway
Visualise local git branches as neat interactive HTML pages
Installation
Installation from the repository requires Poetry
pip install poetry git+https://github.com/p403n1x87/git-railway
Soon available from PyPI!
Usage
Navigate to a git repository and run
git-railway
Your railway graph will be generated in railway.html. Use the -o or
--output option to override the default location, e.g.
git-railway --output /tmp/mytemprailwaygraph.html
If the remote repository is hosted on GitHub, you can have issue and PR
references replaced with actual links if you pass the GitHub slug using the
--gh option, e.g.
git-railway --gh p403n1x87/git-railway
A word on branches
As you probably know already, a branch in git is a mere reference (or label) that moves with every new commit. As such, it's hard if not impossible to reconstruct the actual branch from the information available from within a git repository. This tools works by looking at the current local refs and collecting all the commits that can be reached from them. The "branches" are the reconstructed "best effort" by looking at the reflog to determine on which commit a certain ref has been on. Sometimes this information is missing. For example, when one does a merge by fast-forwarding, all the intermediate commits are not marked with the ref of the target branch. Should they be part of the branch or not? Whenever you see a piece of gray rail in the graph, that's where the ref information is missing.
Metadata
Release files for git-railway 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| git-railway-0.1.2.tar.gz | 24.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| git_railway-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.6 kB
Release files / git-railway-0.1.2.tar.gz
| Download URL | git-railway-0.1.2.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0995f77e08ec37c3e82824d07ecb7c6cdb397e82f137e54154dd8f160d314fb4
|
|
BLAKE2b-256 checksum How to use checksums |
d430479b644163b7a3d8533de2e5e3e37db78925c969bd15b8689b836ecadad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.6 Linux/5.4.0-1026-azure
|
Release files / git_railway-0.1.2-py3-none-any.whl
| Download URL | git_railway-0.1.2-py3-none-any.whl |
|---|---|
| Size | 27.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
036ce0e87dbfc571e2fdd611bdb6650b646627cec411929eaaee9e1ec9c7023a
|
|
BLAKE2b-256 checksum How to use checksums |
6f8f5720fbc0d5a40c1fc5ec4d36c09693b00ff531eeb3ddf0ff7bf7f4d5c86c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.6 Linux/5.4.0-1026-azure
|