Adding a smart .gitignore rule