{"category":"web","endpoint":"https://setget.net/v1/tools/gitignore-test","examples":[{"input":{"gitignore":"# logs and build output\n*.log\n/build/\n!important.log\ndocs/**/*.tmp","paths":["debug.log","important.log","build/app.js","src/build/app.js","docs/a/b/x.tmp"]},"output":{"ignored":["debug.log","build/app.js","docs/a/b/x.tmp"],"not_ignored":["important.log","src/build/app.js"],"results":[{"ignored":true,"line":2,"path":"debug.log","pattern":"*.log"},{"ignored":false,"line":4,"path":"important.log","pattern":"!important.log"},{"ignored":true,"line":3,"path":"build/app.js","pattern":"/build/"},{"ignored":false,"line":null,"path":"src/build/app.js","pattern":null},{"ignored":true,"line":5,"path":"docs/a/b/x.tmp","pattern":"docs/**/*.tmp"}]}},{"input":{"gitignore":"/*\n!/foo\n/foo/*\n!/foo/bar","paths":["readme.md","foo/baz.txt","foo/bar/x.txt"]},"output":{"ignored":["readme.md","foo/baz.txt"],"not_ignored":["foo/bar/x.txt"],"results":[{"ignored":true,"line":1,"path":"readme.md","pattern":"/*"},{"ignored":true,"line":3,"path":"foo/baz.txt","pattern":"/foo/*"},{"ignored":false,"line":4,"path":"foo/bar/x.txt","pattern":"!/foo/bar"}]},"title":"Ignore everything except one folder (from the Git manual)"}],"input_schema":{"additionalProperties":false,"properties":{"gitignore":{"description":"The contents of the .gitignore file.","examples":["*.log\n/build/\n!important.log"],"type":"string"},"paths":{"description":"Paths relative to the folder holding the .gitignore. End a path with / to mark it as a folder.","examples":[["debug.log","important.log","build/app.js"]],"maxItems":200,"type":"array"}},"required":["gitignore","paths"],"type":"object"},"keywords":["gitignore","git ignore","ignored files","check-ignore","why is my file ignored","negation","dockerignore"],"related":["glob-test","regex-test"],"slug":"gitignore-test","summary":"Check which paths a .gitignore file ignores and which line decided each one, using real Git matching rules.","tier":"inline","title":".gitignore tester","url":"https://setget.net/tools/gitignore-test"}
