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.0a3.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.0a3.tar.gz.
File metadata
- Download URL: gitredate-0.1.0a3.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 |
59dc50fdad3fd7a095be6eec476d2a77dde63182997905441322ce274757c993
|
|
| MD5 |
a01e576de11d972e87b210fb4626cf95
|
|
| BLAKE2b-256 |
10c982ba6cd15b824497b1d1383f8087d6a1fe5dfaa9bbecbc0678f147c81f73
|
File details
Details for the file gitredate-0.1.0a3-py3-none-any.whl.
File metadata
- Download URL: gitredate-0.1.0a3-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 |
505437e4eb8ccda0418aacf4e5e34890ca4dc6a78173acb74d208e75552b4bea
|
|
| MD5 |
f30d381652830664dffa1342742a71b8
|
|
| BLAKE2b-256 |
083093ad56a03cb851dff1b12a6f2dd6eafd0b2d4109f5a91172f3d8241a5522
|