summaryrefslogtreecommitdiff
path: root/revert.go
diff options
context:
space:
mode:
authorRichard Burke <[email protected]>2019-01-15 21:29:45 +0000
committerlhchavez <[email protected]>2020-02-22 19:39:50 -0800
commit4bca045e5aa98b0b791fb467705de0692fe3514f (patch)
treea4f00f57c63cc98dc78e5ff8af23bed67cd38ff2 /revert.go
parent30c3d0ffe2118376ccbf3ff5ea1676bd7442440d (diff)
Remove Version from RevertOptions
Version is defaulted to GIT_REVERT_OPTIONS_VERSION
Diffstat (limited to 'revert.go')
-rw-r--r--revert.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/revert.go b/revert.go
index 8e8bb29..e745f11 100644
--- a/revert.go
+++ b/revert.go
@@ -10,7 +10,6 @@ import (
// RevertOptions contains options for performing a revert
type RevertOptions struct {
- Version uint
Mainline uint
MergeOpts MergeOptions
CheckoutOpts CheckoutOpts
@@ -18,7 +17,7 @@ type RevertOptions struct {
func (opts *RevertOptions) toC() *C.git_revert_options {
return &C.git_revert_options{
- version: C.uint(opts.Version),
+ version: C.GIT_REVERT_OPTIONS_VERSION,
mainline: C.uint(opts.Mainline),
merge_opts: *opts.MergeOpts.toC(),
checkout_opts: *opts.CheckoutOpts.toC(),
@@ -27,7 +26,6 @@ func (opts *RevertOptions) toC() *C.git_revert_options {
func revertOptionsFromC(opts *C.git_revert_options) RevertOptions {
return RevertOptions{
- Version: uint(opts.version),
Mainline: uint(opts.mainline),
MergeOpts: mergeOptionsFromC(&opts.merge_opts),
CheckoutOpts: checkoutOptionsFromC(&opts.checkout_opts),