Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commits=""
- log=$(git log --oneline --author=dmitry.selyutin@3mdeb.com src/openpower/sv/sv_binutils.py)
- for commit in $(echo "${log}" | awk '{ print $1; }'); do
- commits="${commit} ${commits}"
- done
- for old in ${commits}; do
- git checkout ${old}
- git commit --amend --no-edit --reset-author
- new=$(git rev-parse --short HEAD)
- git checkout master
- git replace ${old} ${new}
- git checkout master
- done
- git filter-branch -- --all
- for old in ${commits}; do
- git replace -d ${old}
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement