|
|
|
@ -1,6 +1,11 @@
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
ref="$1"
|
|
|
|
|
changed_files="$(git diff --relative --name-only $ref... | egrep '\.cs$')"
|
|
|
|
|
|
|
|
|
|
changed_files="$(git diff --relative --name-only origin/master... | egrep '\.cs$')"
|
|
|
|
|
if [[ -z "$changed_files" ]]; then
|
|
|
|
|
echo "No changed files detected; skipping code cleanup"
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo '--------------------------------------------------'
|
|
|
|
|
echo 'Files to be checked for code cleanup:'
|
|
|
|
|