]>
Commit | Line | Data |
---|---|---|
cf208031 | 1 | /* |
359fc2d2 | 2 | * Copyright (C) the libgit2 contributors. All rights reserved. |
cf208031 RB |
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 | ||
eae0bfdc PP |
10 | #include "common.h" |
11 | ||
cf208031 RB |
12 | #include "git2/checkout.h" |
13 | #include "iterator.h" | |
14 | ||
7e5c8a5b | 15 | #define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12) |
cf208031 RB |
16 | |
17 | /** | |
7e5c8a5b RB |
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. | |
cf208031 | 21 | */ |
7e5c8a5b RB |
22 | extern int git_checkout_iterator( |
23 | git_iterator *target, | |
62a617dc | 24 | git_index *index, |
6affd71f | 25 | const git_checkout_options *opts); |
cf208031 RB |
26 | |
27 | #endif |