aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-06-07 23:56:59 +0100
committerGitHub <noreply@github.com>2023-06-07 23:56:59 +0100
commit35f7e6770361a2c16c9b6c44acdc38ae04c75bd3 (patch)
treec26169956c284d3fb7fc21ec0a907997dd3b2739 /options.go
parent42112780406835a867e6e8cce5ccca3adf13c803 (diff)
parent2d6af16bf6d051cb3014c9970f3ea813e54f73b0 (diff)
downloadgo-git-35f7e6770361a2c16c9b6c44acdc38ae04c75bd3.tar.gz
Merge pull request #765 from matejrisek/feature/shallow-submodules-option
git: add a clone option to allow for shallow cloning of submodules
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 d607b30..6d802d1 100644
--- a/options.go
+++ b/options.go
@@ -62,6 +62,9 @@ type CloneOptions struct {
// within, using their default settings. This option is ignored if the
// cloned repository does not have a worktree.
RecurseSubmodules SubmoduleRescursivity
+ // ShallowSubmodules limit cloning submodules to the 1 level of depth.
+ // It matches the git command --shallow-submodules.
+ ShallowSubmodules bool
// Progress is where the human readable information sent by the server is
// stored, if nil nothing is stored and the capability (if supported)
// no-progress, is sent to the server to avoid send this information.