mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-04 19:50:19 +00:00
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
/*
|
|
* 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
|