databricks-cli/libs/fileset
Pieter Noordhuis c25bc041b1
Never ignore root directory when enumerating files in a repository (#683)
## Changes

The pattern `.*` in a `.gitignore` file can match `.` when walking all
files in a repository. If it does, then the walker immediately aborts
and no files are returned. The root directory (an unnamed directory)
must never be ignored.

Reported in https://github.com/databricks/databricks-vscode/issues/837.

## Tests

New tests pass.
2023-08-21 07:35:02 +00:00
..
file.go Move git.FileSet to libs/fileset and make it aware of gitignores (#184) 2023-01-27 16:04:58 +01:00
fileset.go Never ignore root directory when enumerating files in a repository (#683) 2023-08-21 07:35:02 +00:00
glob.go Added support for sync.include and sync.exclude sections (#671) 2023-08-18 08:07:25 +00:00
glob_test.go Added support for sync.include and sync.exclude sections (#671) 2023-08-18 08:07:25 +00:00
ignorer.go Reload .gitignore files if they have changed (#190) 2023-01-31 18:34:36 +01:00