git: clean-dates: tidy

master
Alan Faubert 2 years ago
parent b7ae14e30e
commit 53e3087105

@ -1,8 +1,8 @@
#!/bin/sh
if [ -z "$1" ]; then refs=HEAD; else refs=$(git rev-parse $1)..HEAD; fi
git -c user.name='_' -c user.email='_' commit --allow-empty --message '_' --no-verify
git -c user.name=_ -c user.email=_ commit --allow-empty --message _ --no-verify
git add --all
git -c user.name='_' -c user.email='_' commit --allow-empty --message '_' --no-verify
git filter-repo --commit-callback 'commit.committer_date = commit.author_date' --force --refs $refs
git -c user.name=_ -c user.email=_ commit --allow-empty --message _ --no-verify
git filter-repo --commit-callback commit.committer_date=commit.author_date --force --refs $refs
git reset HEAD^ --
git reset --soft HEAD^ --

Loading…
Cancel
Save