github.com/decred/dcrlnd@v0.7.6/scripts/check-each-commit.sh (about) 1 #!/bin/bash 2 if [[ "$1" = "" ]]; then 3 echo "USAGE: $0 remote/head_branch" 4 echo "eg $0 upstream/master" 5 exit 1 6 fi 7 8 set -e 9 set -x 10 11 if [[ "$(git log --pretty="%H %D" | grep "^[0-9a-f]*.* $1")" = "" ]]; then 12 echo "It seems like the current checked-out commit is not based on $1" 13 exit 1 14 fi 15 git rebase --exec scripts/check-commit.sh $1