Skip to main content

Rewrite date of Git commits

Project description

GitRedate

Rewrite dates in your git commits, to hide the actual time at which you were working.

Features:

  • sets date during working hours
  • keeps more or less delta time between commits
  • preserves consistency with merge commits
  • preserves commits in master

Usage

uvx gitredate --help

Usage: uvx gitredate [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.0a1.tar.gz (17.3 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.0a1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gitredate-0.1.0a1.tar.gz
Algorithm Hash digest
SHA256 0e2460f8965022aa48ebaaceceab903492ca0490c2688a3a5b852da6930daddf
MD5 33237b67e75e132d8569730f75fa3567
BLAKE2b-256 4642ecef2a95ccef00f90062656b511e04d16c19a29c3d654f89d681d149ba72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gitredate-0.1.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 df978868885708d54e0878921bf4f6932313b23220c37a500c945e6f31f76223
MD5 e0313d4f0cb55d33007363db4af5d20b
BLAKE2b-256 6a1bfa9119ba7ec8f536afa1d354f0a4e9af2b9e7b34f408ced0b1e04626ffdd

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