GOMP (Git cOMPare)
GOMP is a Git-based tool for comparing branches, designed to work with a rebase-oriented Git workflow. Markforged uses GOMP as both a daily tool for handling commits and merges and as a powerful way to visualize complex histories while preparing releases.
Read about the Markforged Git workflow on our software engineering blog.
Installing GOMP
GOMP is based on Python 3 and has no dependencies outside of the Python standard library. It is available for installation over pip:
$ pip install gomp
Alternately, you can clone the repository and include the following alias in your shell profile:
$ alias gomp="python /path/to/gomp/gomp.py"
Gomp has been tested on MacOS only but should be compatible with most flavors of Linux.
Using GOMP
With gomp installed, navigate to any directory that has a git repository with multiple branches. Our hypothetical repository has two branches: feature and main. Run:
$ gomp feature main
This command shows a visual comparison between the two branches.
Use the flag --key to see a key explaining the color codes.
Use the flag --recut to receive output that, when entered into an interactive rebase, will put commits from feature on top of commits from main.
GOMP's output is color-coded:
- Green text means that the commit matches between branches.
- Yellow text means that a commit on the both branches but the commits are in a different order.
- Red text means that a commit is on the target branch and not the source branch.
- Purple text means that a commit is on the source branch and not the target branch.
Contributing to GOMP
Thank you for wanting to help us improve GOMP. Markforged welcomes pull requests to improve GOMP's functionality, reliability, and ease of use. All contributions are subject to our guidelines.
You can learn more about the process of preparing an internal tool for public use on our engineering blog.
The Python 2 version of GOMP is not under active development and is accepting bug fixes only.
GOMP has no dependencies outside of the Python standard library, we'd like to keep it that way.
License
GOMP is released by Markforged under the MIT License.
Metadata
Release files for gomp 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gomp-1.1.1.tar.gz | 7.3 kB | Without provenance | Details for gomp-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gomp-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for gomp-1.1.1-py3-none-any.whl |
Total release size: 14.4 kB
Release files / gomp-1.1.1.tar.gz
| Download URL | gomp-1.1.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
231abd8ed579e8529b87af23aa645dde5c296cc1b4d0670e508a63cc98674a9d
|
|
BLAKE2b-256 checksum How to use checksums |
2a9b780a623571865c81e6bff82432ebbccb98afa29a4fc7951cb5cd0f6b02fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / gomp-1.1.1-py3-none-any.whl
| Download URL | gomp-1.1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9a5147f15865ae75f6e422363eccab27d7fa49f26faa6e7429571daf19c6ac1
|
|
BLAKE2b-256 checksum How to use checksums |
49e45a5bf34c5a7e8b41a47499eedf041c2a7fb2ca2ce9a06560412afb922893
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for gomp 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.