Add git-filter-repo snippet to update rebased dates
This commit is contained in:
parent
7079704653
commit
fcca93f575
2 changed files with 18 additions and 0 deletions
17
files/bin/git-fix-rebase-dates
Normal file
17
files/bin/git-fix-rebase-dates
Normal 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
|
|
@ -21,6 +21,7 @@
|
|||
- docker
|
||||
- docker-compose
|
||||
- firefox-developer-edition
|
||||
- git-filter-repo
|
||||
- github-cli
|
||||
- hugo
|
||||
- insomnia
|
||||
|
|
Loading…
Reference in a new issue