github.com/imran-kn/cilium-fork@v1.6.9/contrib/policy-watcher/post-merge (about)

     1  #!/bin/bash
     2  
     3  changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
     4  
     5  if [ ! -z "${changed_files}" ]; then
     6  	cilium-net-policy import -p .
     7  fi