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.3.1.tar.gz (39.0 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.3.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file gitredate-0.3.1.tar.gz.

File metadata

  • Download URL: gitredate-0.3.1.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.13

File hashes

Hashes for gitredate-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5c5d2cc18eee68823e8f532db1924f4bca28295d10b77e54a529d3d6dcfaeed6
MD5 93fc307ab59bb48fda4cfd21800eadf2
BLAKE2b-256 8e4c220ad27e176b7ffef0fde0a498fe1cbc85cc1108a735413a2ed3f68e531e

See more details on using hashes here.

File details

Details for the file gitredate-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: gitredate-0.3.1-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

Hashes for gitredate-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9cdc9255f97a4f61a3cd26f6c94416669662ec47422e10cf60c7b05fd4f20622
MD5 4d3c1f4c931cae6a143c749e553256af
BLAKE2b-256 06ba3fd3279b812c5777ea3a7536656fa979b2ab73692fc053275a96b9bf5b3a

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