Rewrite date of Git commits
Project description
GitRedate
Rewrite commit dates and times in your git history to business hours.
Features:
- sets date during working hours
- keeps more or less delta time between commits
- preserves consistency with merge commits
Usage
This requires UV, if you don't have it yet, install with pip install uv.
uvx gitredate --help
Usage: gitredate.exe [OPTIONS] [BASE_REF]
╭─ Arguments ──────────────────────────────────────────────────────────────────────────╮
│ base_ref [BASE_REF] Base ref at which redating starts. If empty, will redate │
│ the last commit only. Set `root` the redate the whole │
│ history. │
│ [default: HEAD~1] │
╰──────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────╮
│ --min-date YYYY-MM-DD(THH:MM(:SS)) Custom start date and time │
│ [default: None] │
│ --max-date YYYY-MM-DD(THH:MM(:SS)) Custom end date and time │
│ [default: None] │
│ --working-days TEXT Working days, provide this │
│ argument for each working day │
│ (monday=1) │
│ [default: 1,2,3,4,5] │
│ --working-hour-start HH:MM(:SS) Work day starting hour │
│ [default: 8:00] │
│ --working-hour-end HH:MM(:SS) Work day ending hour │
│ [default: 18:00] │
│ --repository PATH Path to the git repository │
│ [default: .] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────╯
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
gitredate-0.1.0.tar.gz
(38.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gitredate-0.1.0.tar.gz.
File metadata
- Download URL: gitredate-0.1.0.tar.gz
- Upload date:
- Size: 38.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ed95e6ee7e5ff489f5b2bcb45d1a000346932c16374e280dbb4b53161d7580a
|
|
| MD5 |
921e452d294a3bca727862a0e060f4e0
|
|
| BLAKE2b-256 |
1af19255674674b086545655ccb29587e70162f58882264d6fa4911c4f0c6483
|
File details
Details for the file gitredate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gitredate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
083a35b8b611acb950300294719e5dabc22f1f3c5bbdf23a07a90b8865cbfbaa
|
|
| MD5 |
7c9106013256083b38c6d6675d2616a3
|
|
| BLAKE2b-256 |
7411b6e331b7642b7694f591824b735dee343b75a0a1740a74445a67d3e42f51
|