github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/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