github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/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