summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-24 23:31:23 +0100
committerPatrick Steinhardt <ps@pks.im>2019-07-18 13:59:05 +0200
commit36558513c8d9c70cc920e7f2b19e69c11a5946ac (patch)
tree470083edea8a167ba0f8c852be62226051aba148
parent658022c41affc7d9b5bd9b84b1d75ec909b820c6 (diff)
downloadlibgit2-ethomson/cvar.tar.gz
configuration: deprecate git_cvar safelyethomson/cvar
-rw-r--r--include/git2/deprecated.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index 912396ffd..fec56b18b 100644
--- a/include/git2/deprecated.h
+++ b/include/git2/deprecated.h
@@ -7,6 +7,7 @@
#ifndef INCLUDE_git_deprecated_h__
#define INCLUDE_git_deprecated_h__
+#include "config.h"
#include "common.h"
#include "blame.h"
#include "buffer.h"
@@ -116,6 +117,19 @@ GIT_EXTERN(void) git_buf_free(git_buf *buffer);
/**@}*/
+/** @name Deprecated Config Functions and Constants
+ */
+/**@{*/
+
+#define GIT_CVAR_FALSE GIT_CONFIGMAP_FALSE
+#define GIT_CVAR_TRUE GIT_CONFIGMAP_TRUE
+#define GIT_CVAR_INT32 GIT_CONFIGMAP_INT32
+#define GIT_CVAR_STRING GIT_CONFIGMAP_STRING
+
+typedef git_configmap git_cvar_map;
+
+/**@}*/
+
/** @name Deprecated Error Functions and Constants
*
* These functions and enumeration values are retained for backward