diff options
author | Vicent Marti <vicent@github.com> | 2014-05-02 09:50:15 -0700 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-05-02 09:50:15 -0700 |
commit | 272b462db7cfb50c1ab69e1edda214b21f242ae5 (patch) | |
tree | 13c7a7ef6e7ef1e6d90949e60a3d4677ef9096e4 /include/git2/checkout.h | |
parent | 9862ef8ef8ffd95a74be8082acab9fea0de85edb (diff) | |
parent | 99dfa470398b9c4e06e5a5ee61868d3b9e21b26e (diff) | |
download | libgit2-272b462db7cfb50c1ab69e1edda214b21f242ae5.tar.gz |
Merge pull request #2308 from libgit2/rb/diff-update-index-stat-cache
Reduce excessive OID calculation for diff and stat
Diffstat (limited to 'include/git2/checkout.h')
-rw-r--r-- | include/git2/checkout.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h index 69addb7d9..494f67456 100644 --- a/include/git2/checkout.h +++ b/include/git2/checkout.h @@ -270,14 +270,13 @@ typedef struct git_checkout_options { * Initializes a `git_checkout_options` with default values. Equivalent to * creating an instance with GIT_CHECKOUT_OPTIONS_INIT. * -* @param opts the `git_checkout_options` instance to initialize. -* @param version the version of the struct; you should pass -* `GIT_CHECKOUT_OPTIONS_VERSION` here. +* @param opts the `git_checkout_options` struct to initialize. +* @param version Version of struct; pass `GIT_CHECKOUT_OPTIONS_VERSION` * @return Zero on success; -1 on failure. */ -GIT_EXTERN(int) git_checkout_init_opts( - git_checkout_options* opts, - int version); +GIT_EXTERN(int) git_checkout_init_options( + git_checkout_options *opts, + unsigned int version); /** * Updates files in the index and the working tree to match the content of |