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