@@ -102,7 +102,7 @@ void checkout_progress(
102
102
/* … * /
103
103
progress_data d = {0};
104
104
git_clone_options opts = GIT_CLONE_OPTIONS_INIT;
105
- git_checkout_opts checkout_opts = GIT_CHECKOUT_OPTS_INIT ;
105
+ git_checkout_options checkout_opts = GIT_CHECKOUT_OPTIONS_INIT ;
106
106
107
107
checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE_CREATE;
108
108
checkout_opts.progress_cb = checkout_progress;
@@ -130,7 +130,7 @@ git_remote *origin = NULL;
130
130
error = git_remote_create(&origin, repo, "origin", "http://…");
131
131
/* Customize the remote, set callbacks, etc. */
132
132
133
- git_checkout_opts co_opts = GIT_CHECKOUT_OPTS_INIT ;
133
+ git_checkout_options co_opts = GIT_CHECKOUT_OPTIONS_INIT ;
134
134
error = git_clone_into(repo, origin, &co_opts, "master", NULL);
135
135
```
136
136
@@ -1533,15 +1533,15 @@ void checkout_progress(
1533
1533
1534
1534
/* … */
1535
1535
progress_data d = {0};
1536
- git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT ;
1536
+ git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT ;
1537
1537
opts.progress_cb = checkout_progress;
1538
1538
opts.progress_payload = &d;
1539
1539
1540
1540
int error = git_checkout_head(repo, &opts);
1541
1541
```
1542
1542
1543
1543
(
1544
- [ ` git_checkout_opts ` ] ( http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_opts ) ,
1544
+ [ ` git_checkout_options ` ] ( http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_options ) ,
1545
1545
[ ` git_checkout_progress_cb ` ] ( http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_progress_cb )
1546
1546
)
1547
1547
@@ -1563,15 +1563,15 @@ static int checkout_notify(
1563
1563
1564
1564
/* … * /
1565
1565
notify_data d = {0};
1566
- git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT ;
1566
+ git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT ;
1567
1567
opts.notify_cb = checkout_notify;
1568
1568
opts.notify_payload = &d;
1569
1569
1570
1570
int error = git_checkout_head(repo, &opts);
1571
1571
```
1572
1572
1573
1573
(
1574
- [`git_checkout_opts `](http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_opts ),
1574
+ [`git_checkout_options `](http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_options ),
1575
1575
[`git_checkout_notify_t`](http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_notify_t)
1576
1576
)
1577
1577
0 commit comments