diff options
| author | Ben Straub <bstraub@github.com> | 2012-07-31 19:39:06 -0700 | 
|---|---|---|
| committer | Ben Straub <bstraub@github.com> | 2012-07-31 19:39:06 -0700 | 
| commit | 5280f4e6983555e9ae111a6cb10765c7635e7e12 (patch) | |
| tree | 70e490f3b3dbb6a34044c83d89e9e029164954cd | |
| parent | 78cd966aafe6617142a359c2d79a8cb46621fb77 (diff) | |
| download | libgit2-5280f4e6983555e9ae111a6cb10765c7635e7e12.tar.gz | |
Add checkout.h to git2.h.
Also correcting some documentation strings.
| -rw-r--r-- | include/git2.h | 1 | ||||
| -rw-r--r-- | include/git2/checkout.h | 4 | ||||
| -rw-r--r-- | include/git2/clone.h | 4 | 
3 files changed, 5 insertions, 4 deletions
diff --git a/include/git2.h b/include/git2.h index edb73e8a5..40167484b 100644 --- a/include/git2.h +++ b/include/git2.h @@ -38,6 +38,7 @@  #include "git2/config.h"  #include "git2/remote.h"  #include "git2/clone.h" +#include "git2/checkout.h"  #include "git2/attr.h"  #include "git2/branch.h" diff --git a/include/git2/checkout.h b/include/git2/checkout.h index 78367c29f..ac31b3462 100644 --- a/include/git2/checkout.h +++ b/include/git2/checkout.h @@ -40,7 +40,7 @@ typedef struct git_checkout_opts {   * @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 git_error_last for information about the error) + * @return 0 on success, GIT_ERROR otherwise (use giterr_last for information about the error)   */  GIT_EXTERN(int) git_checkout_head(git_repository *repo,  											 git_checkout_opts *opts, @@ -54,7 +54,7 @@ GIT_EXTERN(int) git_checkout_head(git_repository *repo,   * @param ref reference to follow to a commit   * @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 git_error_last for information about the error) + * @return 0 on success, GIT_ERROR otherwise (use giterr_last for information about the error)   */  GIT_EXTERN(int) git_checkout_reference(git_reference *ref,  													git_checkout_opts *opts, diff --git a/include/git2/clone.h b/include/git2/clone.h index 73b6ea54c..f134a045c 100644 --- a/include/git2/clone.h +++ b/include/git2/clone.h @@ -30,7 +30,7 @@ GIT_BEGIN_DECL   * @param workdir_path local directory to clone to   * @param fetch_stats pointer to structure that receives fetch progress information (may be NULL)   * @param checkout_opts options for the checkout step (may be NULL) - * @return 0 on success, GIT_ERROR otherwise (use git_error_last for information about the error) + * @return 0 on success, GIT_ERROR otherwise (use giterr_last for information about the error)   */  GIT_EXTERN(int) git_clone(git_repository **out,  								  const char *origin_url, @@ -46,7 +46,7 @@ GIT_EXTERN(int) git_clone(git_repository **out,   * @param origin_url repository to clone from   * @param dest_path local directory to clone to   * @param fetch_stats pointer to structure that receives fetch progress information (may be NULL) - * @return 0 on success, GIT_ERROR otherwise (use git_error_last for information about the error) + * @return 0 on success, GIT_ERROR otherwise (use giterr_last for information about the error)   */  GIT_EXTERN(int) git_clone_bare(git_repository **out,  										 const char *origin_url,  | 
