https://github.com/wala/WALA
Raw File
Tip revision: e41ef905d4ca9c7e1671c18fb43c2322d723f831 authored by Ben Liblit on 31 March 2024, 17:56:14 UTC
Use new API for updating collection properties
Tip revision: e41ef90
check-git-cleanliness.sh
#!/bin/sh -eu

# Validate ".gitignore" patterns.  All files created during testing should already be ignored, and
# no git-tracked file should be modified during testing.  In other words, "git status" should still
# report a clean tree after testing is done.

if [ -n "$(git status --porcelain)" ]; then
  echo 'warning: source tree is unclean after testing; .gitignore patterns may need to be improved'
  git status
  # false
fi
back to top