docs: wording
This commit is contained in:
parent
bc34be4357
commit
88d4984248
@ -70,7 +70,7 @@ func IsClean(recipeName string) (bool, error) {
|
|||||||
return status.IsClean(), nil
|
return status.IsClean(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetExcludesFiles reads the exlude files from a global git ignore
|
// GetExcludesFiles reads the exlude files from a global gitignore
|
||||||
func GetExcludesFiles() ([]gitignore.Pattern, error) {
|
func GetExcludesFiles() ([]gitignore.Pattern, error) {
|
||||||
var err error
|
var err error
|
||||||
var patterns []gitignore.Pattern
|
var patterns []gitignore.Pattern
|
||||||
@ -100,7 +100,7 @@ func parseGitConfig() (*gitConfigPkg.Config, error) {
|
|||||||
globalGitConfig := filepath.Join(usr.HomeDir, ".gitconfig")
|
globalGitConfig := filepath.Join(usr.HomeDir, ".gitconfig")
|
||||||
if _, err := os.Stat(globalGitConfig); err != nil {
|
if _, err := os.Stat(globalGitConfig); err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
logrus.Debugf("no %s exists, not reading any global git ignore config", globalGitConfig)
|
logrus.Debugf("no %s exists, not reading any global gitignore config", globalGitConfig)
|
||||||
return cfg, nil
|
return cfg, nil
|
||||||
}
|
}
|
||||||
return cfg, err
|
return cfg, err
|
||||||
@ -142,7 +142,7 @@ func parseExcludesFile(excludesfile string) ([]gitignore.Pattern, error) {
|
|||||||
|
|
||||||
if _, err := os.Stat(excludesfile); err != nil {
|
if _, err := os.Stat(excludesfile); err != nil {
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
logrus.Debugf("no %s exists, skipping reading ignore paths", excludesfile)
|
logrus.Debugf("no %s exists, skipping reading gitignore paths", excludesfile)
|
||||||
return ps, nil
|
return ps, nil
|
||||||
}
|
}
|
||||||
return ps, err
|
return ps, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user