diff --git a/files/bin/git-fix-rebase-dates b/files/bin/git-fix-rebase-dates new file mode 100644 index 0000000..4198b19 --- /dev/null +++ b/files/bin/git-fix-rebase-dates @@ -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 diff --git a/tasks/dev.yml b/tasks/dev.yml index 8f475c9..bda177c 100644 --- a/tasks/dev.yml +++ b/tasks/dev.yml @@ -21,6 +21,7 @@ - docker - docker-compose - firefox-developer-edition + - git-filter-repo - github-cli - hugo - insomnia