dotfiles/files/bin/git-fix-rebase-dates
2023-07-28 17:48:17 +01:00

17 lines
276 B
Bash
Executable file

#!/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