A tool to generate a Git commit with a specific hash part.
Project description
hashcommit
A tool to generate a Git commit with a specific hash prefix.
Installation
You can install the package using pip:
pip install hashcommit
Usage
By default, hashcommit
will use the files that are staged (added using git add
) to create a commit with a specific hash prefix. If no files are staged, it will create an empty commit.
To create a new commit with a specific hash prefix:
hashcommit --hash <desired_hash_part> --message "<commit_message>"
To overwrite the current commit with a specific hash prefix:
hashcommit --hash <desired_hash_part> --message "<commit_message>" --overwrite
You can also specify if the hash must begin with, contain, or end with the desired string using the --match-type
option. The default is to match the beginning of the hash:
hashcommit --hash <desired_hash_part> --message "<commit_message>" --match-type <begin|contain|end>
Development
To develop or contribute to this project, clone the repository and install the dependencies:
git clone https://github.com/wozniakpl/hashcommit.git
cd hashcommit
pip install -e .
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
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
Hashes for hashcommit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe8158694aa8d655a80b9f4f64fba74964219853c8f0514dd9bc8f7d07b6f41f |
|
MD5 | cdbc56292a46c1a2569fcebac803d9f4 |
|
BLAKE2b-256 | 82b251efa2f131e29ac4a1a90edae05333685be7977d3f2fb9be1b779a8336f8 |