GitPrompt displays the current branch, the status of stash and rebase, and optionally, non-zero exit status codes.
Examples
To follow along, create a new repository and set your prompt:
$ git init; touch x; git add x; git commit -m x $ export PS1='cwd$(../gitprompt $?) $ '
The current branch is displayed:
cwd master $ git checkout -b new cwd new $ git checkout master cwd master $ echo y1 > y; git add y; git commit -m y1; git checkout new
The number of saved stashes is indicated:
cwd new $ echo y2 > y; git add y; git stash save cwd new stash $ touch z; git add z; git stash save cwd new stashes! $ git stash pop ; git stash pop
Whether a rebase is in progress is indicated:
cwd new $ git rebase master cwd new rebase! $ git rebase --abort cwd new $ git config core.editor true; git rebase --interactive master cwd new rebase! $ git rebase --abort
If gitprompt was passed a non-zero exit code, it will be displayed:
cwd new $ true cwd new $ false => 1 cwd new $
History
0.1.1 – 2009 Oct 26
Corrected minor metadata errors.
0.1 – 2009 Oct 26
Display the current branch and the status of stash and rebase.
Optionally display non-zero exit codes.
Metadata
Release files for GitPrompt 0.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 |
|---|---|---|---|---|
| GitPrompt-0.1.1.tar.gz | 3.7 kB | Without provenance | Details for GitPrompt-0.1.1.tar.gz |
Release files / GitPrompt-0.1.1.tar.gz
| Download URL | GitPrompt-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d65f91c64408f4aa1ba5c9d5f72cd843b40ed4d6f54da8e32fcc4fc0bb07f6c9
|
|
BLAKE2b-256 checksum How to use checksums |
e3670c719ee21ee9aaaf710368cdaeac38c69430d13e695eb125f4298607cf85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for GitPrompt 0.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.