github.com/cockroachdb/pebble@v1.1.2/scripts/changed-go-pkgs.sh (about) 1 #!/usr/bin/env bash 2 3 BASE_SHA="$1" 4 HEAD_SHA="$2" 5 6 if [ -z "$HEAD_SHA" ];then 7 echo "Usage: $0 <base-sha> <head-sha>" 8 exit 1 9 fi 10 11 git diff --name-only "${BASE_SHA}..${HEAD_SHA}" -- "*.go" \ 12 | xargs -rn1 dirname \ 13 | sort -u \ 14 | xargs echo