Skip to main content

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


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.0a4.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitredate-0.1.0a4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file gitredate-0.1.0a4.tar.gz.

File metadata

  • Download URL: gitredate-0.1.0a4.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.3

File hashes

Hashes for gitredate-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 31526db0dbfa39b746772aa13c2fabd25596e62b700e077ab83def3047a936d5
MD5 d8f1ee8cbf616b389e55ce2847b0c898
BLAKE2b-256 87b0c8d21da94691cf0dd35e7b839bc1f6dbeb71fe372144dd21dc1c601255bd

See more details on using hashes here.

File details

Details for the file gitredate-0.1.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for gitredate-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 726fc737b8e896f5d2d15bd7fd1f79116fa7fcd441dacaf11216937c9ec64b1f
MD5 88db7870bbb3c58f96b1f04bfd93ba8f
BLAKE2b-256 065c1e5d0168254f92f9dc3b2d015195e53ba5630f57b7946fcfa21db1060c41

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page