This is way too naive to be useful. Parsing .gitignore files also doesn't belong in the porcelain package.