|
Packit |
ae9e2a |
/*
|
|
Packit |
ae9e2a |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit |
ae9e2a |
*
|
|
Packit |
ae9e2a |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit |
ae9e2a |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
#ifndef INCLUDE_checkout_h__
|
|
Packit |
ae9e2a |
#define INCLUDE_checkout_h__
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#include "git2/checkout.h"
|
|
Packit |
ae9e2a |
#include "iterator.h"
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12)
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
/**
|
|
Packit |
ae9e2a |
* Update the working directory to match the target iterator. The
|
|
Packit |
ae9e2a |
* expected baseline value can be passed in via the checkout options
|
|
Packit |
ae9e2a |
* or else will default to the HEAD commit.
|
|
Packit |
ae9e2a |
*/
|
|
Packit |
ae9e2a |
extern int git_checkout_iterator(
|
|
Packit |
ae9e2a |
git_iterator *target,
|
|
Packit |
ae9e2a |
git_index *index,
|
|
Packit |
ae9e2a |
const git_checkout_options *opts);
|
|
Packit |
ae9e2a |
|
|
Packit |
ae9e2a |
#endif
|