check-gitignore.sh 202 B

12345678
  1. #!/bin/bash
  2. ## files we might want to ignore
  3. git ls-files -o --exclude-standard | sed -e "s:.:\/\\0:"
  4. ## files we are accidentally ignoring
  5. git ls-files -i --exclude-standard | sed -e "s:.:\!\/\\0:"