File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -487,6 +487,9 @@ repository. The `.sourceignore` file follows [the `.gitignore` pattern
487487format](https://git-scm.com/docs/gitignore#_pattern_format), and
488488pattern entries may overrule [default exclusions](#default-exclusions).
489489
490+ The controller recursively loads ignore files so a `.sourceignore` can be
491+ placed in the repository root or in subdirectories.
492+
490493# ### Ignore spec
491494
492495Another option is to define the exclusions within the GitRepository spec, using
Original file line number Diff line number Diff line change @@ -526,6 +526,16 @@ spec:
526526 /deploy/**/*.txt
527527` ` `
528528
529+ # ### `.sourceignore` file
530+
531+ Excluding files is possible by adding a `.sourceignore` file in the artifact.
532+ The `.sourceignore` file follows [the `.gitignore` pattern
533+ format](https://git-scm.com/docs/gitignore#_pattern_format), and pattern
534+ entries may overrule [default exclusions](#default-exclusions).
535+
536+ The controller recursively loads ignore files so a `.sourceignore` can be
537+ placed in the artifact root or in subdirectories.
538+
529539# ## Triggering a reconcile
530540
531541To manually tell the source-controller to reconcile a OCIRepository outside the
You can’t perform that action at this time.
0 commit comments