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.0a2.tar.gz
(38.2 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.0a2.tar.gz.
File metadata
- Download URL: gitredate-0.1.0a2.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
084de1b1b8479cc944e1b5af9b688dca77ac423bb830f0e888b590536e94abb3
|
|
| MD5 |
2db67008915e2e2cf85035b1d6ffe2c3
|
|
| BLAKE2b-256 |
69bb1d412545bf637f677aac9cf29f25e4115e320247d8e73adba8214a07d0b4
|
File details
Details for the file gitredate-0.1.0a2-py3-none-any.whl.
File metadata
- Download URL: gitredate-0.1.0a2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8033e3c8f068b09823613262de9526cb7a6af3a6fcafa8e9eefb8e495d51b7b9
|
|
| MD5 |
f70870f29595070fde94bd13ad5c15c5
|
|
| BLAKE2b-256 |
d93f27739fce7bfeb596bfdec0e7b00dfe485b049a15c913e92bbe5ce81e92d6
|