summaryrefslogtreecommitdiff
path: root/src/transaction.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-07-12 12:50:23 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-08-12 04:09:38 +0200
commit5340d63d3815ddbd1a7e1b5b9628fce10089e8a0 (patch)
tree6a57d0912531b4dc6dc13b2f9d8aec4ebbc98c9b /src/transaction.h
parent36f784b538c4b27f7b52427d2cfce06c535abba0 (diff)
downloadlibgit2-5340d63d3815ddbd1a7e1b5b9628fce10089e8a0.tar.gz
config: perform unlocking via git_transactioncmn/config-tx
This makes the API for commiting or discarding changes the same as for references.
Diffstat (limited to 'src/transaction.h')
-rw-r--r--src/transaction.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transaction.h b/src/transaction.h
new file mode 100644
index 000000000..780c06830
--- /dev/null
+++ b/src/transaction.h
@@ -0,0 +1,14 @@
+/*
+ * 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_transaction_h__
+#define INCLUDE_transaction_h__
+
+#include "common.h"
+
+int git_transaction_config_new(git_transaction **out, git_config *cfg);
+
+#endif