databricks-cli/libs/git
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
..
testdata Never ignore root directory when enumerating files in a repository (#683) 2023-08-21 07:35:02 +00:00
testdata_view_ignore Hardcode `.databricks` ignore pattern to ensure we never sync the cache directory (#295) 2023-04-04 15:44:57 +02:00
clone.go Fix git clone integration test for non-existing repo (#610) 2023-07-27 13:51:57 +00:00
clone_test.go Add support for cloning repositories (#544) 2023-07-25 15:36:20 +02:00
config.go Locate and use global excludes file (#191) 2023-02-02 12:25:53 +01:00
config_test.go Locate and use global excludes file (#191) 2023-02-02 12:25:53 +01:00
fileset.go Never ignore root directory when enumerating files in a repository (#683) 2023-08-21 07:35:02 +00:00
fileset_test.go Never ignore root directory when enumerating files in a repository (#683) 2023-08-21 07:35:02 +00:00
ignore.go Move git package to libs/git (#189) 2023-01-31 19:19:16 +01:00
ignore_test.go Move git package to libs/git (#189) 2023-01-31 19:19:16 +01:00
reference.go Remove \r from new line print statments (#509) 2023-06-22 13:47:52 +02:00
reference_test.go Add git config block to bundle config (#356) 2023-04-26 16:54:36 +02:00
repository.go Never ignore root directory when enumerating files in a repository (#683) 2023-08-21 07:35:02 +00:00
repository_test.go Add git config block to bundle config (#356) 2023-04-26 16:54:36 +02:00
utils.go Consolidate functions in libs/git (#652) 2023-08-10 09:36:42 +00:00
utils_test.go Consolidate functions in libs/git (#652) 2023-08-10 09:36:42 +00:00
view.go Hardcode `.databricks` ignore pattern to ensure we never sync the cache directory (#295) 2023-04-04 15:44:57 +02:00
view_test.go Never ignore root directory when enumerating files in a repository (#683) 2023-08-21 07:35:02 +00:00