add indexignore support and rewrite ignore to use globs