From 14741d62d9a8ae79774cf891a7ed665d8d650188 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Thu, 21 Jun 2012 11:13:19 -0700 Subject: Clone: new home for git_checkout_force. --- include/git2/checkout.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 include/git2/checkout.h (limited to 'include/git2/checkout.h') diff --git a/include/git2/checkout.h b/include/git2/checkout.h new file mode 100644 index 000000000..9dec5b93d --- /dev/null +++ b/include/git2/checkout.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2012 the libgit2 contributors + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_git_checkout_h__ +#define INCLUDE_git_checkout_h__ + +#include "common.h" +#include "types.h" +#include "indexer.h" + + +/** + * @file git2/checkout.h + * @brief Git checkout routines + * @defgroup git_checkout Git checkout routines + * @ingroup Git + * @{ + */ +GIT_BEGIN_DECL + +/** + * Updates files in the working tree to match the version in the index + * or HEAD. + * + * @param repo repository to check out (must be non-bare) + * @param origin_url repository to clone from + * @param workdir_path local directory to clone to + * @param stats pointer to structure that receives progress information (may be NULL) + * @return 0 on success, GIT_ERROR otherwise (use git_error_last for information about the error) + */ +GIT_EXTERN(int) git_checkout_force(git_repository *repo, git_indexer_stats *stats); + +/** @} */ +GIT_END_DECL +#endif -- cgit v1.2.1