]> git.proxmox.com Git - libgit2.git/blob - src/checkout.h
install as examples
[libgit2.git] / src / checkout.h
1 /*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7 #ifndef INCLUDE_checkout_h__
8 #define INCLUDE_checkout_h__
9
10 #include "common.h"
11
12 #include "git2/checkout.h"
13 #include "iterator.h"
14
15 #define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12)
16
17 /**
18 * Update the working directory to match the target iterator. The
19 * expected baseline value can be passed in via the checkout options
20 * or else will default to the HEAD commit.
21 */
22 extern int git_checkout_iterator(
23 git_iterator *target,
24 git_index *index,
25 const git_checkout_options *opts);
26
27 #endif