Update pkg/ignore/doc.go

Co-authored-by: Eddy Moulton <eddy@moulton.com.au>
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
pull/12265/head
Evan Anderson 1 year ago committed by GitHub
parent db9449db6c
commit 9d6cde3337
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -64,5 +64,18 @@ Notable differences from .gitignore:
- Trailing spaces are always ignored (there is no supported escape sequence) - Trailing spaces are always ignored (there is no supported escape sequence)
- The evaluation of escape sequences has not been tested for compatibility - The evaluation of escape sequences has not been tested for compatibility
- There is no support for '\\!' as a special leading sequence for files that begin with `!` - There is no support for '\\!' as a special leading sequence for files that begin with `!`
- The first filename match will determine if it is included or excluded, subsequent lines are ignored
Example:
# This is valid .gitignore syntax to only include Chart.yaml and values.yaml, but invalid for .helmignore
*
!Chart.yaml
!values.yaml
# Instead, this syntax will work as .helmignore takes the first match per file
!Chart.yaml
!values.yaml
*
*/ */
package ignore // import "helm.sh/helm/v3/pkg/ignore" package ignore // import "helm.sh/helm/v3/pkg/ignore"

Loading…
Cancel
Save