summaryrefslogtreecommitdiff
path: root/include/git2/checkout.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-12-26 14:06:21 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-22 22:26:51 +0000
commit20961b9871f12814790ebed80d88692fbb962d4f (patch)
tree9e8ba388e7747fca8c2e25d73a0ceb3f1ae3383b /include/git2/checkout.h
parent6b2cd0ed599aec32444166b7ad5b0c9fdd88b498 (diff)
downloadlibgit2-20961b9871f12814790ebed80d88692fbb962d4f.tar.gz
git_error: use full class name in public error API
Move to the `git_error` name in error-related functions, deprecating the `giterr` functions. This means, for example, that `giterr_last` is now `git_error_last`. The old names are retained for compatibility. This only updates the public API; internal API and function usage remains unchanged.
Diffstat (limited to 'include/git2/checkout.h')
-rw-r--r--include/git2/checkout.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/checkout.h b/include/git2/checkout.h
index 295363727..3fb3fc127 100644
--- a/include/git2/checkout.h
+++ b/include/git2/checkout.h
@@ -325,7 +325,7 @@ GIT_EXTERN(int) git_checkout_init_options(
* @param opts specifies checkout options (may be NULL)
* @return 0 on success, GIT_EUNBORNBRANCH if HEAD points to a non
* existing branch, non-zero value returned by `notify_cb`, or
- * other error code < 0 (use giterr_last for error details)
+ * other error code < 0 (use git_error_last for error details)
*/
GIT_EXTERN(int) git_checkout_head(
git_repository *repo,
@@ -338,7 +338,7 @@ GIT_EXTERN(int) git_checkout_head(
* @param index index to be checked out (or NULL to use repository index)
* @param opts specifies checkout options (may be NULL)
* @return 0 on success, non-zero return value from `notify_cb`, or error
- * code < 0 (use giterr_last for error details)
+ * code < 0 (use git_error_last for error details)
*/
GIT_EXTERN(int) git_checkout_index(
git_repository *repo,
@@ -354,7 +354,7 @@ GIT_EXTERN(int) git_checkout_index(
* the working directory (or NULL to use HEAD)
* @param opts specifies checkout options (may be NULL)
* @return 0 on success, non-zero return value from `notify_cb`, or error
- * code < 0 (use giterr_last for error details)
+ * code < 0 (use git_error_last for error details)
*/
GIT_EXTERN(int) git_checkout_tree(
git_repository *repo,