checkout.h 708 Bytes
Newer Older
1
/*
Edward Thomson committed
2
 * Copyright (C) the libgit2 contributors. All rights reserved.
3 4 5 6 7 8 9
 *
 * 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_checkout_h__
#define INCLUDE_checkout_h__

10 11
#include "common.h"

12 13 14
#include "git2/checkout.h"
#include "iterator.h"

15
#define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12)
16 17

/**
18 19 20
 * Update the working directory to match the target iterator.  The
 * expected baseline value can be passed in via the checkout options
 * or else will default to the HEAD commit.
21
 */
22 23
extern int git_checkout_iterator(
	git_iterator *target,
24
	git_index *index,
25
	const git_checkout_options *opts);
26 27

#endif