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.2.0.tar.gz (39.1 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.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gitredate-0.2.0.tar.gz
Algorithm Hash digest
SHA256 22c0a659a618ae2517167326fac5f2544bcfdab92822066b49dd3dba72b640b1
MD5 2916f787ea4a86d0b14f38b1148d27af
BLAKE2b-256 daa7c66ea0243ebd6c329525d89b931ebd0dfe66b4358cbaa2163d167d25e238

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gitredate-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.13

File hashes

Hashes for gitredate-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fc4fddf69522c913de5453a3de2128dd9e0647632fabc9c3a9b5a6748d3cc32
MD5 35c060a4b65d1c14b1a056f935686ad4
BLAKE2b-256 88435cab4b51fe228ae07a8071280b6399c46fdec62622150d02be71b68f80e5

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