aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'options.go')
-rw-r--r--options.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/options.go b/options.go
index 34f4dcd..4d289e9 100644
--- a/options.go
+++ b/options.go
@@ -79,7 +79,9 @@ func (o *PullOptions) Validate() error {
// FetchOptions describe how a fetch should be perform
type FetchOptions struct {
RefSpecs []config.RefSpec
- Depth int
+ // Depth limit fetching to the specified number of commits from the tip of
+ // each remote branch history.
+ Depth int
}
// Validate validate the fields and set the default values