Change gitignore api to use new parser. Update docs.