databricks-cli/libs/sync
Denis Bilenko a26461c5a3
Do not modify/create .gitignore in bundle root (#2429)
## Changes
- Do not modify or edit .gitignore in bundle root.
- Instead create .databricks/.gitignore with content set to "*"

## Why
Merging our changes into existing .gitignore is complicated and adding
.gitignore where it's not expected adds to the noise. Other tools also
use the approach in this PR (e.g. ruff creates .ruff_cache/.gitignore).

## Tests
- Modified templates/default-sql to capture this new file.
2025-03-05 10:57:05 +00:00
..
testdata Format Python code with ruff (#2166) 2025-01-17 07:38:47 +00:00
diff.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
diff_test.go Refactor change computation for sync (#785) 2023-10-03 13:47:46 +00:00
dirset.go Abstract over filesystem interaction with libs/vfs (#1452) 2024-05-30 07:41:50 +00:00
dirset_test.go Add directory tracking to sync (#425) 2023-06-12 11:44:00 +00:00
event.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
event_test.go Add optional JSON output for sync command (#230) 2023-03-08 10:27:19 +01:00
gitignore.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
output.go Enable errcheck everywhere and fix or silent remaining issues (#1987) 2024-12-11 13:26:00 +01:00
path.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
path_test.go Remove base path checks during sync (#576) 2023-07-14 11:43:20 +02:00
snapshot.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
snapshot_state.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
snapshot_state_test.go Make fileset take optional list of paths to list (#1684) 2024-08-19 15:15:14 +00:00
snapshot_test.go Enable testifylint and fix the issues (#2065) 2025-01-02 12:03:41 +01:00
sync.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
sync_test.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
watchdog.go Pass through paths argument to libs/sync (#1689) 2024-08-19 15:41:02 +00:00