diff options
Diffstat (limited to 'scm.go')
| -rw-r--r-- | scm.go | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -6,12 +6,20 @@ package spdxconv // sourceCodeManagement define the interface for SCM tools. type sourceCodeManagement interface { IsIgnored(path string) bool + LogFollow(path, format string) ([]string, error) } // noSCM is a type to indicate working directory without SCM. // It always return false on IsIgnored. -type noSCM struct{} +type noSCM struct { +} + +var defaultNoSCM = &noSCM{} func (scm *noSCM) IsIgnored(path string) bool { return false } + +func (scm *noSCM) LogFollow(path, format string) ([]string, error) { + return nil, nil +} |
