aboutsummaryrefslogtreecommitdiff
path: root/scm.go
diff options
context:
space:
mode:
Diffstat (limited to 'scm.go')
-rw-r--r--scm.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/scm.go b/scm.go
index 7e193b8..ac708d0 100644
--- a/scm.go
+++ b/scm.go
@@ -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
+}