summaryrefslogtreecommitdiff
path: root/checkout.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-02-15 15:02:19 +0100
committerCarlos Martín Nieto <[email protected]>2016-02-15 15:02:19 +0100
commit6d6736b2bd4e23a68fa5e0703ab9cf20f3f32af3 (patch)
tree5944351daa7480f7e1a89c46b147701a88dfe697 /checkout.go
parent6d60e0f2c911b939f2ccae5d3f7d4c554a4d563e (diff)
parent55594814c9009f9d645aea39a9f917cf82666228 (diff)
Merge remote-tracking branch 'upstream/master' into next
Diffstat (limited to 'checkout.go')
-rw-r--r--checkout.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/checkout.go b/checkout.go
index ce2f469..a2e312b 100644
--- a/checkout.go
+++ b/checkout.go
@@ -45,6 +45,7 @@ type CheckoutOpts struct {
FileOpenFlags int // Default is O_CREAT | O_TRUNC | O_WRONLY
TargetDirectory string // Alternative checkout path to workdir
Paths []string
+ Baseline *Tree
}
func checkoutOptionsFromC(c *C.git_checkout_options) CheckoutOpts {
@@ -90,6 +91,10 @@ func populateCheckoutOpts(ptr *C.git_checkout_options, opts *CheckoutOpts) *C.gi
ptr.paths.count = C.size_t(len(opts.Paths))
}
+ if opts.Baseline != nil {
+ ptr.baseline = opts.Baseline.cast_ptr
+ }
+
return ptr
}