aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2018-01-18 11:59:27 +0100
committerGitHub <noreply@github.com>2018-01-18 11:59:27 +0100
commitf6aca0820fb0a44d4c4875a21581a09609d63a6b (patch)
treecc94d2d3accb4f5277f2a13e571da275b0bbf08e /options.go
parente9247ce9c5ce12126f646ca3ddf0066e4829bd14 (diff)
parent591aed138177b27b08a90c90e6e074a6cf2dbd00 (diff)
downloadgo-git-f6aca0820fb0a44d4c4875a21581a09609d63a6b.tar.gz
Merge pull request #721 from rykov/clone-no-checkout
Support for clone without checkout (git clone -n)
Diffstat (limited to 'options.go')
-rw-r--r--options.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.go b/options.go
index 9fb315e..a87b497 100644
--- a/options.go
+++ b/options.go
@@ -41,6 +41,8 @@ type CloneOptions struct {
ReferenceName plumbing.ReferenceName
// Fetch only ReferenceName if true.
SingleBranch bool
+ // No checkout of HEAD after clone if true.
+ NoCheckout bool
// Limit fetching to the specified number of commits.
Depth int
// RecurseSubmodules after the clone is created, initialize all submodules