Add git-filter-repo snippet to update rebased dates

This commit is contained in:
Jake Howard 2023-07-28 14:43:37 +01:00
parent 7079704653
commit fcca93f575
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
# https://til.simonwillison.net/git/git-filter-repo
set -e
base=$1
if [[ ! -v base ]]; then
echo "Please provide base."
exit 1
fi
git filter-repo --commit-callback '
commit.committer_date = commit.author_date
' --force --refs $base..HEAD

View File

@ -21,6 +21,7 @@
- docker
- docker-compose
- firefox-developer-edition
- git-filter-repo
- github-cli
- hugo
- insomnia