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.3.0.tar.gz
(39.0 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.3.0.tar.gz.
File metadata
- Download URL: gitredate-0.3.0.tar.gz
- Upload date:
- Size: 39.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b9be841810b5140e7df29ccf25055467c6777fb80d2dd9100065b90996df83e
|
|
| MD5 |
8fa4fe64c34c09ae8416543150299919
|
|
| BLAKE2b-256 |
b9e9b5f44836798f9fdf54ed78440fd048424ddc7b60a4ae96d83467f1da1132
|
File details
Details for the file gitredate-0.3.0-py3-none-any.whl.
File metadata
- Download URL: gitredate-0.3.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5975591d201cccdd7afa875a0d325cf47524b10d517d81c78e30e3d2377f74fa
|
|
| MD5 |
5268000c98a8657e967562c93b12bb7e
|
|
| BLAKE2b-256 |
57ffd3b775e49159d74df62d43335191e402fc9cb328f527be412f5f1e3b5b2a
|