Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- tput setaf 4
- echo "$@"
- tput setaf 9
- [ "$1" = 'amend' ] && exit
- tput setaf 6
- unset DBUS_SESSION_BUS_ADDRESS HUSHLOGIN INVOCATION_ID JOURNAL_STREAM LANG LANGUAGE LESS LESSCLOSE LESSOPEN LS_COLORS MAIL OLDPWD SHLVL STY WINDOW XDG_RUNTIME_DIR XDG_SE
- AT XDG_SESSION_CLASS XDG_SESSION_ID XDG_SESSION_TYPE XDG_VTNR
- export
- tput setaf 9
- while read old new extra; do
- echo "O=$old N=$new E=$extra"
- git branch --no-color --format='%(refname:short)' --contains $old |
- while read branch; do
- echo "B=$branch"
- echo git rebase --onto $new $old $branch
- done
- echo
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement