aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-05-04 22:44:14 +0100
committerGitHub <noreply@github.com>2023-05-04 22:44:14 +0100
commit1dbd729a387edb61c89f088cd68040085e6c81bb (patch)
tree81a8abeb928fbe07cf75eaf12705e57009c41077 /options.go
parent2f3db9de0c31de26303eb389b3f3133f7aa67a04 (diff)
parentecc9fe45b6261492c0cfdcdb1ff4e642252d6694 (diff)
downloadgo-git-1dbd729a387edb61c89f088cd68040085e6c81bb.tar.gz
Merge pull request #754 from matejrisek/feature/submodule-clone-depth
git: Add Depth to SubmoduleUpdateOptions
Diffstat (limited to 'options.go')
-rw-r--r--options.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.go b/options.go
index 84744c7..3d75e03 100644
--- a/options.go
+++ b/options.go
@@ -300,6 +300,9 @@ type SubmoduleUpdateOptions struct {
RecurseSubmodules SubmoduleRescursivity
// Auth credentials, if required, to use with the remote repository.
Auth transport.AuthMethod
+ // Depth limit fetching to the specified number of commits from the tip of
+ // each remote branch history.
+ Depth int
}
var (