github.com/ddev/ddev@v1.23.2-0.20240519125000-d824ffe36ff3/.githooks/pre-push.allchecks (about)

     1  #!/bin/sh
     2  
     3  # Look for uncommitted files, http://stackoverflow.com/a/2659808/215713
     4  git diff-index --quiet HEAD || (echo "There are uncommitted files" && exit 1)
     5  
     6  # Look for unstaged files
     7  test -z "$(git ls-files --exclude-standard --others)" || (echo "There are unstaged files" && exit 2)
     8  
     9  # And check make staticrequired
    10  make -s staticrequired