Skip to content

Commit

Permalink
Tweak backdate
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Dec 16, 2024
1 parent b5398a9 commit 628e066
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -568,9 +568,10 @@ prep-date:

date: prep-date
#!/usr/bin/env zsh
START_DATE=$(gdate -d "7 days ago" +%Y-%m-%d)
END_DATE=$(gdate +%Y-%m-%d)
git backdate origin/main "${START_DATE}..${END_DATE}" --no-business-hours
BEGIN_DATE=$(gdate -d "3 days ago" +%Y-%m-%d)
END_DATE=$(gdate -d "today" +%Y-%m-%d)
echo "Rewriting history to distribute commits between ${BEGIN_DATE} and ${END_DATE}"
git backdate origin/main "${BEGIN_DATE}..${END_DATE}" --no-business-hours
# based on https://github.com/zachdaniel/dotfiles/blob/main/priv_scripts/project
proj:
Expand Down

0 comments on commit 628e066

Please sign in to comment.