]> git.proxmox.com Git - libgit2.git/commitdiff
checkout: drop git_checkout_reference()
authornulltoken <emeric.fermas@gmail.com>
Fri, 14 Sep 2012 09:15:49 +0000 (11:15 +0200)
committernulltoken <emeric.fermas@gmail.com>
Mon, 17 Sep 2012 08:48:30 +0000 (10:48 +0200)
include/git2/checkout.h
src/checkout.c

index 5707de0d7ba3937e603f7e2e41d60c0bed819517..b15b56a33be83eff78ef3e13359ccb6bcb089fb2 100644 (file)
@@ -57,22 +57,6 @@ GIT_EXTERN(int) git_checkout_head(
        git_checkout_opts *opts,
        git_indexer_stats *stats);
 
-/**
- * Updates files in the index and the working tree to match the content of the
- * commit pointed at by the reference.
- *
- *
- * @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 giterr_last for information
- * about the error)
- */
-GIT_EXTERN(int) git_checkout_reference(
-       git_reference *ref,
-       git_checkout_opts *opts,
-       git_indexer_stats *stats);
-
 /**
  * Updates files in the working tree to match the content of the index.
  *
index beb8b5a633993a8224446208098b00f59d7be61c..c39bccbaac6b20309c96d595745b8cc0eacba745 100644 (file)
@@ -358,23 +358,3 @@ int git_checkout_head(
        return error;
 }
 
-int git_checkout_reference(
-       git_reference *ref,
-       git_checkout_opts *opts,
-       git_indexer_stats *stats)
-{
-       git_repository *repo= git_reference_owner(ref);
-       git_reference *head = NULL;
-       int error;
-
-       if ((error = git_reference_create_symbolic(
-               &head, repo, GIT_HEAD_FILE, git_reference_name(ref), true)) < 0)
-                       return error;
-
-       error = git_checkout_head(git_reference_owner(ref), opts, stats);
-
-       git_reference_free(head);
-       return error;
-}
-
-