summaryrefslogtreecommitdiff
path: root/src/libgit2/checkout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgit2/checkout.h')
-rw-r--r--src/libgit2/checkout.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libgit2/checkout.h b/src/libgit2/checkout.h
new file mode 100644
index 000000000..517fbf3b1
--- /dev/null
+++ b/src/libgit2/checkout.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) the libgit2 contributors. All rights reserved.
+ *
+ * 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__
+
+#include "common.h"
+
+#include "git2/checkout.h"
+#include "iterator.h"
+
+#define GIT_CHECKOUT__NOTIFY_CONFLICT_TREE (1u << 12)
+
+/**
+ * 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.
+ */
+extern int git_checkout_iterator(
+ git_iterator *target,
+ git_index *index,
+ const git_checkout_options *opts);
+
+#endif