mirror of https://github.com/databricks/cli.git
7de7583b37
## Changes Before this change, the fileset library would take a single root path and list all files in it. To support an allowlist of paths to list (much like a Git `pathspec` without patterns; see [pathspec](pathspec)), this change introduces an optional argument to `fileset.New` where the caller can specify paths to list. If not specified, this argument defaults to list `.` (i.e. list all files in the root). The motivation for this change is that we wish to expose this pattern in bundles. Users should be able to specify which paths to synchronize instead of always only synchronizing the bundle root directory. [pathspec]: https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec ## Tests New and existing unit tests. |
||
---|---|---|
.. | ||
testdata/sync-fileset | ||
diff.go | ||
diff_test.go | ||
dirset.go | ||
dirset_test.go | ||
event.go | ||
event_test.go | ||
path.go | ||
path_test.go | ||
snapshot.go | ||
snapshot_state.go | ||
snapshot_state_test.go | ||
snapshot_test.go | ||
sync.go | ||
sync_test.go | ||
watchdog.go |