File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,14 @@ import (
10
10
11
11
// RevertOptions contains options for performing a revert
12
12
type RevertOptions struct {
13
- Version uint
14
13
Mainline uint
15
14
MergeOpts MergeOptions
16
15
CheckoutOpts CheckoutOpts
17
16
}
18
17
19
18
func (opts * RevertOptions ) toC () * C.git_revert_options {
20
19
return & C.git_revert_options {
21
- version : C .uint ( opts . Version ) ,
20
+ version : C .GIT_REVERT_OPTIONS_VERSION ,
22
21
mainline : C .uint (opts .Mainline ),
23
22
merge_opts : * opts .MergeOpts .toC (),
24
23
checkout_opts : * opts .CheckoutOpts .toC (),
@@ -27,7 +26,6 @@ func (opts *RevertOptions) toC() *C.git_revert_options {
27
26
28
27
func revertOptionsFromC (opts * C.git_revert_options ) RevertOptions {
29
28
return RevertOptions {
30
- Version : uint (opts .version ),
31
29
Mainline : uint (opts .mainline ),
32
30
MergeOpts : mergeOptionsFromC (& opts .merge_opts ),
33
31
CheckoutOpts : checkoutOptionsFromC (& opts .checkout_opts ),
You can’t perform that action at this time.
0 commit comments