title: inotify: Watch files changes except for files in .gitignore?
body: <p>I'm trying to listen file changes in a folder except .gitignore to trigger rebuild.</p>
  
  <p>It seems like using inotifywait with --exclude option is the right way to do. Does anyone know a good way to convert .gitignore to regex such that inotifywait --exclude can accept correctly?</p>