databricks-cli/libs/git
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 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 Remove resolution of repo names against the Databricks Github account (#940) 2023-11-01 13:02:06 +00:00
clone_test.go Fall back to full Git clone if shallow clone is not supported (#775) 2023-09-15 09:14:51 +00:00
config.go Enable errcheck everywhere and fix or silent remaining issues (#1987) 2024-12-11 13:26:00 +01:00
config_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
fileset.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
fileset_test.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
ignore.go Update error checks that use the `os` package to use `errors.Is` (#1461) 2024-06-03 12:39:36 +00:00
ignore_test.go Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
info.go Bump github.com/databricks/databricks-sdk-go from 0.55.0 to 0.56.1 (#2238) 2025-01-27 13:11:07 +00:00
reference.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
reference_test.go Add error checking in tests and enable errcheck there (#1980) 2024-12-09 13:56:41 +01:00
repository.go Properly read Git metadata when running inside workspace (#1945) 2024-12-05 10:13:13 +00:00
repository_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00
view.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
view_test.go Do not modify/create .gitignore in bundle root (#2429) 2025-03-05 10:57:05 +00:00
worktree.go Support Git worktrees for `sync` (#1831) 2024-10-21 18:27:07 +00:00
worktree_test.go Enable perfsprint linter and apply autofix (#2071) 2025-01-07 10:49:23 +00:00