summaryrefslogtreecommitdiff
path: root/evergreen/functions/modified_patch_files_get_all.sh
blob: 5e79cc6ce0d952df86fedc6d4ccc514e1f4bafad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
. "$DIR/../prelude.sh"

cd src

set -o verbose
set -o errexit

# For patch builds gather the modified patch files.
if [ "${is_patch}" = "true" ]; then
  # Get list of patched files
  git diff HEAD --name-only >>patch_files.txt
  if [ -d src/mongo/db/modules/enterprise ]; then
    pushd src/mongo/db/modules/enterprise
    # Update the patch_files.txt in the mongo repo.
    git diff HEAD --name-only >>~1/patch_files.txt
    popd
  fi
fi