]> git.proxmox.com Git - libgit2.git/blob - src/checkout.h
Merge pull request #1209 from ethomson/update_copyright
[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 "git2/checkout.h"
11 #include "iterator.h"
12
13 #define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12)
14
15 /**
16 * Update the working directory to match the target iterator. The
17 * expected baseline value can be passed in via the checkout options
18 * or else will default to the HEAD commit.
19 */
20 extern int git_checkout_iterator(
21 git_iterator *target,
22 git_checkout_opts *opts);
23
24 #endif