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. │
╰──────────────────────────────────────────────────────────────────────────────────────╯
Release files for gitredate 0.3.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 | |
|---|---|---|---|
| gitredate-0.3.1.tar.gz | 39.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gitredate-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.6 kB
Release files / gitredate-0.3.1.tar.gz
| Download URL | gitredate-0.3.1.tar.gz |
|---|---|
| Size | 39.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c5d2cc18eee68823e8f532db1924f4bca28295d10b77e54a529d3d6dcfaeed6
|
|
BLAKE2b-256 checksum How to use checksums |
8e4c220ad27e176b7ffef0fde0a498fe1cbc85cc1108a735413a2ed3f68e531e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.13
|
Release files / gitredate-0.3.1-py3-none-any.whl
| Download URL | gitredate-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9cdc9255f97a4f61a3cd26f6c94416669662ec47422e10cf60c7b05fd4f20622
|
|
BLAKE2b-256 checksum How to use checksums |
06ba3fd3279b812c5777ea3a7536656fa979b2ab73692fc053275a96b9bf5b3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.8.13
|