diff options
author | Paulo Gomes <pjbgf@linux.com> | 2023-06-07 23:56:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 23:56:59 +0100 |
commit | 35f7e6770361a2c16c9b6c44acdc38ae04c75bd3 (patch) | |
tree | c26169956c284d3fb7fc21ec0a907997dd3b2739 /options.go | |
parent | 42112780406835a867e6e8cce5ccca3adf13c803 (diff) | |
parent | 2d6af16bf6d051cb3014c9970f3ea813e54f73b0 (diff) | |
download | go-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.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |