aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/internal/scm/stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli/internal/scm/stub.go')
-rw-r--r--cli/internal/scm/stub.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/internal/scm/stub.go b/cli/internal/scm/stub.go
new file mode 100644
index 0000000..2e356c5
--- /dev/null
+++ b/cli/internal/scm/stub.go
@@ -0,0 +1,14 @@
+// Adapted from https://github.com/thought-machine/please/tree/master/src/scm
+// Copyright Thought Machine, Inc. or its affiliates. All Rights Reserved.
+// SPDX-License-Identifier: Apache-2.0
+package scm
+
+type stub struct{}
+
+func (s *stub) ChangedFiles(fromCommit string, toCommit string, relativeTo string) ([]string, error) {
+ return nil, nil
+}
+
+func (s *stub) PreviousContent(fromCommit string, filePath string) ([]byte, error) {
+ return nil, nil
+}