Drop the get prefix from GetIgnoreFileName function

This commit is contained in:
Morten Torkildsen
2020-09-21 20:54:57 -07:00
parent 537ff024dd
commit 66740dfad6
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{