diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-08-24 10:40:17 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-09-17 10:48:27 +0200 |
commit | e93af304112735f02bfeb0833b58ed8230de2371 (patch) | |
tree | 316cfca5de513c931d422303fc6a443c850555f9 /include/git2 | |
parent | 3aa443a9511f5b9848d314337b226c41ef3eef84 (diff) | |
download | libgit2-e93af304112735f02bfeb0833b58ed8230de2371.tar.gz |
checkout: introduce git_checkout_index()
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/checkout.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h index 21b68e3ab..3217ac9a0 100644 --- a/include/git2/checkout.h +++ b/include/git2/checkout.h @@ -71,6 +71,20 @@ GIT_EXTERN(int) git_checkout_reference( git_indexer_stats *stats); /** + * Updates files in the working tree to match the content of the index. + * + * @param repo repository to check out (must be non-bare) + * @param opts specifies checkout options (may be NULL) + * @param stats structure through which progress information is reported + * @return 0 on success, GIT_ERROR otherwise (use giterr_last for information + * about the error) + */ +GIT_EXTERN(int) git_checkout_index( + git_repository *repo, + git_checkout_opts *opts, + git_indexer_stats *stats); + +/** * Updates files in the index and working tree to match the content of the * tree pointed at by the treeish. * |