| # Ignore everything in third_party except for specific directories. | |
| # | |
| # The forward-slash is necessary to gitignore everything | |
| # except for specific directories (configured below). | |
| # See https://git-scm.com/docs/gitignore#_examples | |
| /* | |
| # Do not ignore the following: | |
| !.gitignore | |
| !binaryen | |
| !/d8/README.google | |
| !/firefox_jsshell/README.google | |
| !clang.tar.gz.sha1 | |
| !unittest.tar.gz.sha1 | |
| !update.sh | |
| !fallback_root_certificates | |
| # Perfetto source is in subdirectory. | |
| !perfetto | |
| # First exclude pkg from the gitignore, then re-ignore all its contents. | |
| # See https://github.com/dart-lang/pub/issues/4300. | |
| !/pkg/ | |
| /pkg/* | |
| !/pkg/code_assets.status | |
| !/pkg/data_assets.status | |
| !/pkg/hooks_runner.status | |
| !/pkg/hooks.status | |
| !/pkg/native_toolchain_c.status | |
| !/pkg/record_use.status | |
| # These packages are authored in third_party. | |
| !/pkg/dap | |
| !/pkg/dap/* | |
| !/pkg/language_server_protocol | |
| !/pkg/language_server_protocol/* |