Skip to content

Commit 60f1a6d

Browse files
committed
Rename git_checkout_opts to git_checkout_options
1 parent 6d9dbb8 commit 60f1a6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/guides/101-samples/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void checkout_progress(
102102
/**/
103103
progress_data d = {0};
104104
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;
106106

107107
checkout_opts.checkout_strategy = GIT_CHECKOUT_SAFE_CREATE;
108108
checkout_opts.progress_cb = checkout_progress;
@@ -130,7 +130,7 @@ git_remote *origin = NULL;
130130
error = git_remote_create(&origin, repo, "origin", "http://…");
131131
/* Customize the remote, set callbacks, etc. */
132132
133-
git_checkout_opts co_opts = GIT_CHECKOUT_OPTS_INIT;
133+
git_checkout_options co_opts = GIT_CHECKOUT_OPTIONS_INIT;
134134
error = git_clone_into(repo, origin, &co_opts, "master", NULL);
135135
```
136136

@@ -1533,15 +1533,15 @@ void checkout_progress(
15331533
15341534
/* … */
15351535
progress_data d = {0};
1536-
git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT;
1536+
git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT;
15371537
opts.progress_cb = checkout_progress;
15381538
opts.progress_payload = &d;
15391539
15401540
int error = git_checkout_head(repo, &opts);
15411541
```
15421542

15431543
(
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),
15451545
[`git_checkout_progress_cb`](http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_progress_cb)
15461546
)
15471547

@@ -1563,15 +1563,15 @@ static int checkout_notify(
15631563

15641564
/**/
15651565
notify_data d = {0};
1566-
git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT;
1566+
git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT;
15671567
opts.notify_cb = checkout_notify;
15681568
opts.notify_payload = &d;
15691569

15701570
int error = git_checkout_head(repo, &opts);
15711571
```
15721572
15731573
(
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),
15751575
[`git_checkout_notify_t`](http://libgit2.github.com/libgit2/#HEAD/type/git_checkout_notify_t)
15761576
)
15771577

0 commit comments

Comments
 (0)