Merge pull request #3026 from mortent/RenameGetIgnoreFileNameFunc

Drop the get prefix from GetIgnoreFileName function
This commit is contained in:
Kubernetes Prow Robot
2020-09-22 10:56:42 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -3,8 +3,8 @@
package ext
// GetIgnoreFileName returns the name for ignore files in
// IgnoreFileName returns the name for ignore files in
// packages. It can be overridden by tools using this library.
var GetIgnoreFileName = func() string {
var IgnoreFileName = func() string {
return ".krmignore"
}

View File

@@ -39,7 +39,7 @@ type ignoreFilesMatcher struct {
// we just add a matcher that match nothing.
func (i *ignoreFilesMatcher) readIgnoreFile(path string) error {
i.verifyPath(path)
m, err := gitignore.NewGitIgnore(filepath.Join(path, ext.GetIgnoreFileName()))
m, err := gitignore.NewGitIgnore(filepath.Join(path, ext.IgnoreFileName()))
if err != nil {
if os.IsNotExist(err) {
i.matchers = append(i.matchers, matcher{