git-ctm

git-ctm = git commit Time Machine
Sometimes you need to create a commit with particular timestamp. git-ctm provides a command-line tool ctm for easy committing with desired timestamp:
$ ctm -d 'Thu Feb 8 03:14:15 2018 +0200' -m 'my commit message'
# is the same as
$ GIT_AUTHOR_DATE='Thu Feb 8 03:14:15 2018 +0200' \
GIT_COMMITTER_DATE='Thu Feb 8 03:14:15 2018 +0200' \
git commit -m 'my commit message'
All commits in this project are done with ctm itself.
Installation
From PyPI using pip package manager:
pip install --upgrade git-ctm
Or install the latest sources from GitHub:
pip install https://github.com/pavdmyt/git-ctm/archive/master.zip
Or just put ctm PEX (Python EXecutable) file somewhere in the $PATH:
$ git clone https://github.com/pavdmyt/git-ctm.git
$ cd git-ctm
$ sudo cp ctm /usr/local/bin/
Now ctm command-line tool should be available to use, try:
ctm --version
Usage
$ ctm --help
Usage: ctm -d <date> -m <msg>
ctm -p
-d <date> Commit date and time
-m <msg> Commit message
-p Print date template
--help Print usage
--version Print version
Development
Clone the repository:
git clone https://github.com/pavdmyt/git-ctm.git
Install dependencies:
make install-dev
Lint code:
make lint
Contributing
Fork it!
Create your feature branch: git checkout -b my-new-feature
Commit your changes: git commit -m 'Add some feature'
Push to the branch: git push origin my-new-feature
Submit a pull request
Make sure tests are passing
License
MIT - Pavlo Dmytrenko
Metadata
Release files for git-ctm 0.2.0
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 |
|---|---|---|---|---|
| git-ctm-0.2.0.tar.gz | 4.4 kB | Without provenance | Details for git-ctm-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| git_ctm-0.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for git_ctm-0.2.0-py2.py3-none-any.whl |
Total release size: 9.8 kB
Release files / git-ctm-0.2.0.tar.gz
| Download URL | git-ctm-0.2.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0651d02ef48d6be087c1b1e8fb8a9df81228a8db7976c4c1fe170e02b603c7bc
|
|
BLAKE2b-256 checksum How to use checksums |
69515c59dd380c748c5532c450218395220fa59f47cfbc3e5e1402d4cc694623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / git_ctm-0.2.0-py2.py3-none-any.whl
| Download URL | git_ctm-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0aeaa50394baa982db1aebb360bcd6dd12071fe9272d65b7801c8d14bf09fb25
|
|
BLAKE2b-256 checksum How to use checksums |
5b10389ef8ac49453ad2a8895e57b5828d34389c9657776b56c5efec0533774d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for git-ctm 0.2.0
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.