summaryrefslogtreecommitdiff
path: root/ext/git/client.go
diff options
context:
space:
mode:
authorjnovick <joshua.novick@hunters.ai>2024-08-14 04:22:00 +0300
committerGitHub <noreply@github.com>2024-08-13 21:22:00 -0400
commit859900ef39bbaa54d18298615fca843e0488b106 (patch)
treea6efb8797bf834c5434ddd6009d9752fe401b6b8 /ext/git/client.go
parent0ad5b94ff483bd2045e7adb3f54b1ca4c700d3da (diff)
feat: Use shallow clone to speed up performance (#830)
Signed-off-by: Joshua Novick <joshua.novick@hunters.ai>
Diffstat (limited to 'ext/git/client.go')
-rw-r--r--ext/git/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/git/client.go b/ext/git/client.go
index ac9dc10..199716b 100644
--- a/ext/git/client.go
+++ b/ext/git/client.go
@@ -65,6 +65,7 @@ type Client interface {
Root() string
Init() error
Fetch(revision string) error
+ ShallowFetch(revision string, depth int) error
Submodule() error
Checkout(revision string, submoduleEnabled bool) error
LsRefs() (*Refs, error)