diff options
author | Ben Straub <bs@github.com> | 2014-01-03 17:38:34 -0800 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2014-03-06 09:44:51 -0800 |
commit | 6affd71f33f9a9693425d6f3599ba1f25226c34b (patch) | |
tree | 42127170b47c96ec55438920e812dc0d96568add /src | |
parent | 8e5247203720de7abd084996c00afd6fb6f6cc21 (diff) | |
download | libgit2-6affd71f33f9a9693425d6f3599ba1f25226c34b.tar.gz |
git_checkout_opts -> git_checkout_options
Diffstat (limited to 'src')
-rw-r--r-- | src/checkout.c | 28 | ||||
-rw-r--r-- | src/checkout.h | 2 | ||||
-rw-r--r-- | src/clone.c | 4 | ||||
-rw-r--r-- | src/reset.c | 2 | ||||
-rw-r--r-- | src/stash.c | 2 |
5 files changed, 19 insertions, 19 deletions
diff --git a/src/checkout.c b/src/checkout.c index 4ef8da076..5dd4ec71c 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -47,7 +47,7 @@ enum { typedef struct { git_repository *repo; git_diff *diff; - git_checkout_opts opts; + git_checkout_options opts; bool opts_free_baseline; char *pfx; git_index *index; @@ -1144,7 +1144,7 @@ static int blob_content_to_file( const char *path, const char * hint_path, mode_t entry_filemode, - git_checkout_opts *opts) + git_checkout_options *opts) { int error = 0; mode_t file_mode = opts->file_mode ? opts->file_mode : entry_filemode; @@ -1856,7 +1856,7 @@ static void checkout_data_clear(checkout_data *data) static int checkout_data_init( checkout_data *data, git_iterator *target, - const git_checkout_opts *proposed) + const git_checkout_options *proposed) { int error = 0; git_repository *repo = git_iterator_owner(target); @@ -1875,12 +1875,12 @@ static int checkout_data_init( data->repo = repo; GITERR_CHECK_VERSION( - proposed, GIT_CHECKOUT_OPTS_VERSION, "git_checkout_opts"); + proposed, GIT_CHECKOUT_OPTIONS_VERSION, "git_checkout_options"); if (!proposed) - GIT_INIT_STRUCTURE(&data->opts, GIT_CHECKOUT_OPTS_VERSION); + GIT_INIT_STRUCTURE(&data->opts, GIT_CHECKOUT_OPTIONS_VERSION); else - memmove(&data->opts, proposed, sizeof(git_checkout_opts)); + memmove(&data->opts, proposed, sizeof(git_checkout_options)); if (!data->opts.target_directory) data->opts.target_directory = git_repository_workdir(repo); @@ -2000,7 +2000,7 @@ cleanup: int git_checkout_iterator( git_iterator *target, - const git_checkout_opts *opts) + const git_checkout_options *opts) { int error = 0; git_iterator *baseline = NULL, *workdir = NULL; @@ -2106,7 +2106,7 @@ cleanup: int git_checkout_index( git_repository *repo, git_index *index, - const git_checkout_opts *opts) + const git_checkout_options *opts) { int error; git_iterator *index_i; @@ -2141,7 +2141,7 @@ int git_checkout_index( int git_checkout_tree( git_repository *repo, const git_object *treeish, - const git_checkout_opts *opts) + const git_checkout_options *opts) { int error; git_tree *tree = NULL; @@ -2189,19 +2189,19 @@ int git_checkout_tree( int git_checkout_head( git_repository *repo, - const git_checkout_opts *opts) + const git_checkout_options *opts) { assert(repo); return git_checkout_tree(repo, NULL, opts); } -int git_checkout_init_opts(git_checkout_opts* opts, int version) +int git_checkout_init_opts(git_checkout_options* opts, int version) { - if (version != GIT_CHECKOUT_OPTS_VERSION) { - giterr_set(GITERR_INVALID, "Invalid version %d for git_checkout_opts", version); + if (version != GIT_CHECKOUT_OPTIONS_VERSION) { + giterr_set(GITERR_INVALID, "Invalid version %d for git_checkout_options", version); return -1; } else { - git_checkout_opts o = GIT_CHECKOUT_OPTS_INIT; + git_checkout_options o = GIT_CHECKOUT_OPTIONS_INIT; memcpy(opts, &o, sizeof(o)); return 0; } diff --git a/src/checkout.h b/src/checkout.h index 6d7186860..f1fe69628 100644 --- a/src/checkout.h +++ b/src/checkout.h @@ -19,6 +19,6 @@ */ extern int git_checkout_iterator( git_iterator *target, - const git_checkout_opts *opts); + const git_checkout_options *opts); #endif diff --git a/src/clone.c b/src/clone.c index b5333bdb7..e19d02ba2 100644 --- a/src/clone.c +++ b/src/clone.c @@ -322,7 +322,7 @@ on_error: static bool should_checkout( git_repository *repo, bool is_bare, - const git_checkout_opts *opts) + const git_checkout_options *opts) { if (is_bare) return false; @@ -336,7 +336,7 @@ static bool should_checkout( return !git_repository_head_unborn(repo); } -int git_clone_into(git_repository *repo, git_remote *remote, const git_checkout_opts *co_opts, const char *branch, const git_signature *signature) +int git_clone_into(git_repository *repo, git_remote *remote, const git_checkout_options *co_opts, const char *branch, const git_signature *signature) { int error = 0, old_fetchhead; git_strarray refspecs; diff --git a/src/reset.c b/src/reset.c index 07fd08863..45a686fcb 100644 --- a/src/reset.c +++ b/src/reset.c @@ -102,7 +102,7 @@ int git_reset( git_index *index = NULL; git_tree *tree = NULL; int error = 0; - git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT; + git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; git_buf log_message_buf = GIT_BUF_INIT; assert(repo && target); diff --git a/src/stash.c b/src/stash.c index 0c9101294..d20e29b80 100644 --- a/src/stash.c +++ b/src/stash.c @@ -468,7 +468,7 @@ static int reset_index_and_workdir( bool remove_untracked, bool remove_ignored) { - git_checkout_opts opts = GIT_CHECKOUT_OPTS_INIT; + git_checkout_options opts = GIT_CHECKOUT_OPTIONS_INIT; opts.checkout_strategy = GIT_CHECKOUT_FORCE; |