aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authormatej.risek <matej.risek@hashicorp.com>2023-05-04 09:04:23 +0200
committermatej.risek <matej.risek@hashicorp.com>2023-05-04 09:04:23 +0200
commitecc9fe45b6261492c0cfdcdb1ff4e642252d6694 (patch)
tree141642f1ebc5e5bc2b6435a54c33e55c00bcec7a /options.go
parentb154dcce7059e4e02f8798db158b6a76ffc4a63e (diff)
downloadgo-git-ecc9fe45b6261492c0cfdcdb1ff4e642252d6694.tar.gz
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 738c1ce..d1200d8 100644
--- a/options.go
+++ b/options.go
@@ -284,6 +284,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 (